Ubuntu Networking :: Restarting DHCP With Www-data User?
Jul 21, 2011
I'm attempting to write a web service that works only on my LAN and is not accessible via the internet. I need to restart the DHCP service without granting full root access, but I'm having trouble using the [/etc/init.d/dhcp3-server restart] command. It gives back a failure message that reports nothing:
$ /etc/init.d/dhcp3-server restart
dhcpd self-test failed. Please fix the config file.
The error was:
$
Looking at the script itself, I found the command its trying to execute, and it came back with this:
$ /usr/sbin/dhcpd3 -t -cf /etc/dhcp3/dhcpd.conf
drop_privileges: could not set group id: Operation not permitted
So I went and changed the dhcp: and dhcpd: AND www-data: in /etc/group so that www-data (The apache user) was part of the group, and still the init.d script wouldn't run.
I would prefer to NOT give passwordless access to the www-data user as I do other web services on this machine, however, giving access to stop my DHCP server is a risk I'm willing to take.
how can I restart the DHCP with apache so I can apply changes?
View 2 Replies
ADVERTISEMENT
Jul 12, 2010
I installed dhcp on my Debian server and it was working fine.
untile I restart network with this :
And then dhcp was not working.
View 4 Replies
View Related
Jul 8, 2010
I have been routing network traffic based on MAC addresses, so we can distribute traffic evenly over a series of WAN IP addresses.Everything seems to be going well, but I have a very curious problem. One of the users can connect to the network without problem, but I don't see him in my network administration application (neither his MAC address or leased IP address).At the same time, I'm trying to identify other unknown computers on my network based on MAC addresses I don't have on file.
View 4 Replies
View Related
Oct 22, 2010
Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.
Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address. When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto vlan100
iface vlan100 inet static
[code]....
why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.
View 6 Replies
View Related
Jul 1, 2010
Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.
Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address.
When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto vlan100
[code]....
why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.
View 2 Replies
View Related
Mar 8, 2010
Currently I have my eth0 interface getting a DHCP address but at times the DHCP server will not be reachable. Sooo what I would like my server to do is if it cannot find a DHCP server assign a static address to eth0. Then start the DHCP service so it can then dish out some addresses.How can I do this? Surely it is possible
View 2 Replies
View Related
Mar 25, 2010
I am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response
openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4
openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108
openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67
openSUSE11232CL1 dhclient: send_packet: Network is unreachable
openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.
The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?
View 2 Replies
View Related
May 30, 2011
Take a physical user FRED. FRED is a linux user ( known by linux on his laptop ) FRED is a Samba user ( Known by samba on the samba pdc server ) When he logs locally (with username/password) on its standalone laptop (with no network), he is known as FRED:user. He access his data in /home/FRED/. When he logs through samba (with username/password) on the domain MY_DOM, he is known as MY_DOMFRED:MY_DOMdomain user. He access his data in /home/MY_DOM/FRED/. ) Is it possible that the human FRED has only one repository and have full access to its repository regardless of how it was connected. If yes, how to do it
2) If not, Is it possible that the human FRED has full access to /home/FRED/.............. and /home/MY_DOM/FRED/.
View 4 Replies
View Related
Jan 6, 2010
I'm wanting my linux machine to set it's network settings during boot, so I've done the following Changed my /etc/network/interfaces to
Code:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
[code]....
Ok so it boots up ok and it's sitting on the login screen, when I try to ping it however it doesn't reply!
View 8 Replies
View Related
Jul 23, 2010
I have recently installed Ubuntu 10.04 in one of my notebook's HD partitions. It all runs smoothly, except for wireless. For some reason, Ubuntu only finds my wireless connections after I boot into Windows and then restart. If I boot straight into Ubuntu, I always get the 'device not ready' or 'disconnected' message under 'Wireless networks'.
Does anyone know what might be the cause of the problem and what can I do to solve it?
Below are some information about my computer, as requested in the 'How to post a wireless issue' thread.
These are the results AFTER restarting from Windows.
Machine brand: Mirax - XT8000 NTL 243200
Code:
lspci
02:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
[Code].....
View 3 Replies
View Related
Oct 24, 2010
I have been running Meerkat in its various forms for the last few weeks. Wireless connection has not been a problem at all. I rebooted about 15 mins ago and on restarting the wireless connection will not connect. I checked to see what the problem was and clicked on Edit Connections and on the wireless tab.
My wireless is set to auto and its name is SKY 24550. I now have 2 entries in the same name and the one that is trying to connect is asking for wep 128 bit security details to be entered. My connection used WPA&WPA2 personal.
Ok, I thought I'll delete the new one (with the different security setting) and try again.
No good, it still asks for the same security details.
So I go back into edit connections and the new one is back again! I can't get rid of it, and while it's there the one that should connect isn't getting the chance.
Fortunately ethernet is working ok and I also have a Natty install which also connects ok through the old wireless connection, but not in Maverick.
View 2 Replies
View Related
Jan 15, 2010
I've a DHCP server in RHEL 5 and 100+ users in my network. I mapped 30 users MAC address with ip. Rest are getting ip address automatically. In my network, users tend to move from one department to another frequently. I've created scopes according to departments. (i.e. Dept A - 172.19.54.10-172.19.54.30 and so on for other departments).
1) I want to configure DHCP server in this way, that a client have to autheticated by DHCP server before receive and IP address.
2) Second, Whether DHCP server have free IPs in scope, but only clients can obtain IPs those MACs are mapped, rest should not without authentication or authorization.
View 2 Replies
View Related
Jan 21, 2010
A DHCP server in RHEL 5 and 100+ users in my network. I mapped 30 users MAC address with ip. Rest are getting ip address automatically. In my network, users tend to move from one department to another frequently. I've created scopes according to departments. (i.e. Dept A - 172.19.54.10-172.19.54.30 and so on for other departments).1) I want to configure DHCP server in this way, that a client have to autheticated by DHCP server before receive and IP address.2) Second, Whether DHCP server have free IPs in scope, but only clients can obtain IPs those MACs are mapped, rest should not without authentication or authorization
View 2 Replies
View Related
Jan 3, 2011
I have a problem with my BROADCOM BCM4311 802.11b/g WLAN... I made a clean installation of Maverick Meerkat and everything runs perfect except the card drivers... then I investigated almost a week on the net and finally the problem was solved (I made the installation of some drivers on Synaptics tool, then I wrote some codes on the Terminal to activate the light to turn it blue and the Wi-Fi IS ON AND WORKS!).
I thought everything was ok, but when I restarted the laptop, the wifi conections aren't able to be detected so I must re-install the card driver to get it active again :S. I really don't know why the card drivers works only when I install them, because restarting the system make them simply don't work.
I read something about changing my user's state (it was 'personalized') to 'administrator', but nothing happened.I searched on Ubuntu's web but nothing works.It's a Compaq Presario V3000.
View 2 Replies
View Related
Jun 12, 2009
Ubuntu desktop 9.04 Whenever I try to copy files to any machine on the network, the transfer stops and I no longer have access to the network or the internet. This happens whether I'm doing scp, copy with the gui, when copying to windows machines, and when uploading database files with phpmyadmin. I have been able to successfully transfer large amounts of data outside of the network via ftp, but not to any on the network. I've discovered that I can re-enable network access by restarting NetworkManager.
View 1 Replies
View Related
Feb 26, 2010
It is really a problem that drives me crazy.
Every time after restarting my Linux machine, Network won't load and i can't activate eth0.
After multiple restarts it comes activated but i am sure it is not what makes it to work.
Can some one ever heard about such situation?
I have a 3com Ethernet adapter.
View 7 Replies
View Related
Feb 2, 2010
The system will also crash when booting if it is not plugged in. However, this behaviour is not consistent. The crash is not really a crash so much as a complete system freeze, where not even the numlock light on the keyboard will turn on or off. I have to do a hard reset to get it going again.The last entry before the reboot in /var/log/messeges just shows eth0 link going down.
View 1 Replies
View Related
Mar 5, 2010
I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port
Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)
[code]...
View 5 Replies
View Related
Apr 23, 2010
I was wondering if there is a program or just a simple copy and paste from somewhere that will allow me to move my favorites and other data from my opera on xp.
View 3 Replies
View Related
Jun 23, 2010
forums so I'm not sure this is the right place for this topic.So, my question/topic thing is:I have a PHP script that runs on an apache2 web server (www-data).From this script, i want to launch a process that stays alive all the time,ut the parent script keeps on going. So I think I will need to run a command like 'at' to put the process on a queue, and the script can continue and finish, without waiting for the process to stop. But it seems like I will need to run the 'at' command as a different user, because www-data stops the 'atd' process. I'm not sure about that. Does anybody know how this could happen?
View 2 Replies
View Related
Jul 8, 2010
How can I transfer data from one user account to the other? I wish to delete one of the accounts but before that I want to transfer all the data in that account to the other account so that my data is saved.
View 3 Replies
View Related
Dec 26, 2010
I have some developers with Desktop User accounts. How can I allow them to delete files owned by www-data which are created under their accounts (/home/username/public_html) by PHP scripts they are coding and testing.I tried to edit www-data user group and add the user as a member of it but this has no effect - the user still unable to delete these files only by creating another PHP script!
View 1 Replies
View Related
Jan 12, 2011
I was making some tests and I could see that ubuntu software management systems doesn't delete user data when uninstalling applications, only the binary packages.
e.g. reinstalling Thunderbird won't delete the email accounts info.
View 8 Replies
View Related
Aug 23, 2011
I had a student, and she has done some work on her account on my lab computer, but has left the country and is un-contactable.
I have full administrator privileges for this machine, and it is running Ubuntu LTS 10.04
She has a folder which was copied from a windows formatted external hard drive (Probably NTFS) onto her home partition on my machine.
I can open all of her files, except for those in this folder.
As I see it the problem is either something to do with the permissions of the files (coming from NTFS), or some kind of Ubuntu security that I am unaware of?
Here are my attempts to open it code...
View 2 Replies
View Related
Aug 4, 2010
I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices.My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server.One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network.
View 4 Replies
View Related
Oct 12, 2010
I have searched and searched for answers to this question, but I can't find what I'm searching for anywhere. At least with the search terms I'm using.So, my question is, is there a backup software for Linux that backs up not only a user's home folder, etc, but also the user's applications, and its associated data.
I am about to upgrade my mother's computer to Lucid, but I don't want to do that until I can find a backup solution that will ensure she doesn't lose any of her application data. She has a lot of apps on her netbook, so just finding out where each individual app stores its data and backing it up is kind of out of the question. Unless every app that the end-user uses (that isn't run as root, obviously) stores its data in the home folder, then it would be easier.Honestly, I use a Mac and I guess I'm just used to the simplicity of Time Machine, which certainly backs up applications, application data, user data, and even extra executables in all the /bin folders (which Macs don't typically use to store most applications). I've heard TimeVault is like Time Machine, but when I tried to use it on her computer, it wouldn't work because it wasn't compatible with the version of Ubuntu that was (and still is) on her computer.
View 6 Replies
View Related
Mar 11, 2011
I was using Ubuntu and installed Opensuse 11.4. I have installed Pidgin 2.7. I copied the old .purple directory from Ubuntu into my Opensuse home directory. But now the Pidgin is not reading the data, logs and configuration from the .purple directory.
View 3 Replies
View Related
Oct 31, 2010
I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices. My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server. One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network. However I have no idea how this could be setup.
View 2 Replies
View Related
Jan 4, 2010
I'm working in Ubuntu 9.04 Desktop with Apache installed. I have a directory /var/www/test:drwxrwxr-x 5 root www-data 4096 2010-01-04 13:51 test And I've added myself as a member of the group www-data. Problem though is when i go into /var/www/test I still can't do anything, whether it's creating a new file or directory or editing files there. The files within the directory are also 775 and setup under group www-data.
View 2 Replies
View Related
Jun 6, 2010
I currently have Zarafa and I am going to install MythWeb for MythTV.To solve the permission problem for installing amportal (FreePBX), I have to change Apache's user and group to Asterisk instead of this, which I've commented out:User ${APACHE_RUN_USER}Group ${APACHE_RUN_GROUP}Once FreePBX is installed completely, I checked to make sure FreePBX is working and it worked. I used the latest version of Asterisk from the SVN trunk, so I used ./install_amp --my-svn-is-correct.However, I want to use Zarafa AND FreePBX, I just don't like having to change the Apache User and Group to asterisk.Here is a couple of examples of instructions when installing FreePBX:Is there a workaround? I really want to change it back to what it was before while FreePBX can still access their own directories.
I did not know if this question has been asked, but I thought I'd ask here. I've added "zarafa" and "mythweb" to the tags list my thread.Update: I changed my apache configuration file back to www-data for User and Group and I do have /var/lib/asterisk/agi-bin and /var/www/asterisk (where FreePBX PHP pages are installed in /var/www/asterisk) owned by asterisk:asterisk. But I get this:
Code:
Retrieve conf failed to copy file(s) from a module's agi-bin dir: copy(/var/lib/asterisk/agi-bin/directory): failed to open stream: Permission denied
[co0de]...
View 1 Replies
View Related