1
I am trying to change the hostname of a Gentoo host using a sudoer account. I use the following procedure :
sudo rm -f /etc/conf.d/hostname
sudo touch /etc/conf.d/hostname
sudo echo "hostname=foo" >> /etc/conf.d/hostname
sudo /etc/init.d/net.lo restart
Only the step 3 fails. It raises a permission error
. So I would like to know why I get this ? I tried to stop the networking service first, but no change.