Jump to content

change IP of Gentoo Box from PHP


RasmusT

Recommended Posts

Hi

 

I need a script that can change the ip adress of my Gentoo box.

 

I have made a script that chown /etc/conf.d/net and change the values, but when i restart the server i get the error "Configuration not set for eth0 - assuming DHCP"

 

i seems like the server don't read the config if its changed by another user than root.

 

Can i make a script that change the values without chown the file? maybe by using sudo?

 

PLEASE HELP

Link to comment
https://forums.phpfreaks.com/topic/112735-change-ip-of-gentoo-box-from-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.