Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'using sudo visudo' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
using sudo visudo
Authored by: loren_ryter on Jan 03, '02 08:07:26AM

according to "man visduo," using sudo visudo is potentially very destructive--doing the wrong thing could mean not being able to use the sudo command again.

unfortunately "man visudo" doesn't explain how to edit the file very cleary--only that it can be dangerous and visudo protects against doing the wrong thing.

So... could anyone clearly explain how to use that and add the line for renice safely and correctly?



[ Reply to This | # ]
using sudo visudo
Authored by: aelana on Jan 03, '02 09:35:54AM

Note, as with anything potentially destructive, make a backup copy of the file (in this case /etc/sudoers)... (if for some reason things get mudged up, you can always enable root and copy the file back).

Ok once you are in the visudo editor, you will want to arrow down to the last line of the file and type $a then press <return> then type %admin ALL=NOPASSWD:/usr/bin/renice then hit <esc> and type :wq and press <return>, if all goes well you should be back at the command prompt.



[ Reply to This | # ]