Quote:
The only way that would be possible is if I give write permission on the /etc directory. I don't think thats a good idea. The /etc/resolv.conf keeps getting messed up. I want ordinary users to able to use internet and thats not possible right now with the dns not being set properly. The only way I can think of is by allowing a user to use sudo cp on a specific directory and only a specific file.
Is that a real problem? You could create a group for the users that need to edit
/etc/resolv.conf, gives write permission to
/etc/ and
/etc/resolv.conf for that group. As long as the other files in
/etc doesn't belong to this group, these users won't be able to mess-up those files (files in
/etc belong normally to
root:root).
Corona is right: If doable, this way should be prefered over
sudo/cp.
Brgds,
/Lew