RasmusT Posted July 1, 2008 Share Posted July 1, 2008 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 More sharing options...
trq Posted July 1, 2008 Share Posted July 1, 2008 Why on earth would you be using php for this? A bash/sed script would be alot simpler. Link to comment https://forums.phpfreaks.com/topic/112735-change-ip-of-gentoo-box-from-php/#findComment-579032 Share on other sites More sharing options...
RasmusT Posted July 2, 2008 Author Share Posted July 2, 2008 Because i have to change the ip from a website.. But if you can help med with a script i will be happy Link to comment https://forums.phpfreaks.com/topic/112735-change-ip-of-gentoo-box-from-php/#findComment-579948 Share on other sites More sharing options...
trq Posted July 2, 2008 Share Posted July 2, 2008 Were not here to write scripts for you. How about you post your code and tell us what the problem is? Link to comment https://forums.phpfreaks.com/topic/112735-change-ip-of-gentoo-box-from-php/#findComment-579983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.