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


Click here to return to the 'Recover from syntax errors in the sudoers file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Recover from syntax errors in the sudoers file
Authored by: boredzo on Feb 15, '07 08:16:08AM

Also, visudo doesn't necessarily use vi. As explained by the manpage, if you set VISUAL or EDITOR in your environment, it will use that editor instead. This goes for vipw as well.

There are other things that use $EDITOR, so it's worth setting anyway.



[ Reply to This | # ]
Recover from syntax errors in the sudoers file
Authored by: xSmurf on Feb 15, '07 08:19:19AM

See, I like setting my EDITOR variable to 'mate -w' which opens in TextMate and asks it to stay open until I'm done with the file, allowing it to work with visudo or svn commit. Very neat.

---
MacBook Pro 2.16Ghz / 2Gb / 100Gb 7200rpm / CD/DVD±RW
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf



[ Reply to This | # ]