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


Click here to return to the 'Remove insecure root 'grace period' from sudo' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove insecure root 'grace period' from sudo
Authored by: kokaviel on Jun 01, '05 11:10:33AM

visudo just does some sanity checks before it writes to disk. If you happen to not know vi, you can just edit it with emacs, pico, etc. Just don't do anything crazy, and make sure you keep a backup in case you end up making a mistake and need to revert.



[ Reply to This | # ]
not using visudo
Authored by: hayne on Jun 01, '05 12:46:38PM

Note that if you don't use 'visudo' and you introduce a syntax error into the /etc/sudoers file, you will need to resort to single-user mode to fix it since 'sudo' will not work if there is a syntax error in the /etc/sudoers file



[ Reply to This | # ]
visudo & other editors
Authored by: vykor on Jun 01, '05 12:53:56PM

The version of visudo on Panther is compiled with with an enveditor option that obeys the EDITOR variable in the shell. Set visudo to use emacs (or whatever editor) as the default by exporting a new EDITOR variable.

As an emacs guy, I've always done this in emacs. All the benefits of visudo, without the syntax of vi.



[ Reply to This | # ]