add users to sudo file

David M. Carney carney1979 at gmail.com
Mon Nov 15 04:15:50 UTC 2004


On Sun, 14 Nov 2004 19:47:24 -0800, Daniel Robitaille
<robitaille at gmail.com> wrote:
> > > I haven't messed with the sudoers file in Ubuntu, but in YDL (and Linux
> > > in general?) to give sudoers sudo powers, you have to edit the file
> > > sudoers using a text editor called visudo, if I recall.
> > >
> > ...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.  That will
> prevent most ways of screwing badly your sudoers files.  And Ubuntu is
> especially vulnerable to a screwup in that fashion since,  if your
> sudoers file is corrupts or buggy,  chances are good you will not be
> able to do a sudo command to go repair it afterward.  And you don't
> have a root login as a backup way to go re-modify your sudoers
> files...
> 
> Personally I only use visudo to modify my /etc/sudoers just to play it safe.
> 
> --
> 
> 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
Hmm. I didn't know that.

Sounds like real good advice. I guess I've been lucky in my past
choices of text editors.

David

-- 
Registered Linux User #297958




More information about the ubuntu-users mailing list