visudo and other editors [Was: add users to sudo file]

Jeff Waugh jeff.waugh at canonical.com
Mon Nov 15 04:16:23 UTC 2004


<quote who="Daniel Robitaille">

> > ...or 'sudo <any text editor> /etc/sudoers' will work.
> 
> the advantage of "visudo" instead of "any text editor" is that visudo will
> do, before you save the file, some sanity checks and make sure you don't
> have any syntax errors in your sudoers file.

You can use other editors while still being protected from screwups by
visudo... Like this:

  EDITOR=nano visudo

[ Note that I do not endorse the use of nano at all! ;-) ]

- Jeff

-- 
Ubuntu in MatarĂ³, Spain: December 5th-18th      http://www.ubuntulinux.org/
 
   "They are, as I told Telsa, all very small cheques. Indeed our cheques
   only come in one size, otherwise cheque books would be far too hard to
                          manufacture." - Alan Cox




More information about the ubuntu-users mailing list