Re: Using PHP to change Linux IP address
| From: | John Nichel | Date: | Wed, 01 Dec 2004 00:18:35 +0000 |
| Subject: | Re: Using PHP to change Linux IP address | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203192@lists.php.net to get a copy of this message | ||
Greg Donald wrote:
On Tue, 30 Nov 2004 16:50:27 -0500, John Nichel <john@kegworks.com> wrote:Greg's right, but if you go the sudo route (in fact any route giving your webserver this type of permission), read and understand the docs completely. Editing the ifcfg-ethX file is one thing, but giving it the permission level to restart the network could lead to serious security issues if it's not done properly. I'll stop now, as this can easily go waaay off topic, and can become an extremely long, involved thread. ;) -- By-Tor.com ...it's all about the Rush http://www.by-tor.comPHP (the webserver) would have to have permission to edit the ifcfg-eth0 (eth1, eth2, etc) file, and have permission to restart the network.sudo would probably help with the permissions requirements.