sudo and PATH?

Peter Garrett peter.garrett at
Mon Jan 8 23:25:28 UTC 2007

On Mon, 08 Jan 2007 15:44:19 -0400
Derek Broughton <news at> wrote:

> >> One of those really stupid legacy unixisms.  For years I _didn't_
> >> use visudo (without problems) because I refuse to use vi.  Then I
> >> realized it doesn't really use vi (unless that's your default editor).
> > 
> > hehe, I wasn't refering to using vi vim emacs or any editor but more
> > to that if you break your sudoers file without using visudo you won't
> > be able to use any sudo command 
> Yes, I know.  However, I suspect there are other uses like me who were
> scared off by the "vi".  So in essence, I was agreeing that you _should_
> use visudo, and don't be frightened by the name.

I also did not realise that "visudo" actually uses the default editor
until I had an experience something like this on IRC ( somewhat
embroidered, I admit)

me:  OK , so hit <escape> and type " i " before you input changes
learner: hmm, am I supposed to have the letter "i" in the file now?
me: Umm, hit <escape> again and type "x" over the "i" to erase it
learner: ???
me: Let's start again - hit <escape> and type :q! to get out of there...
learner: What? You aren't making any sense...

.... and so on, until I ran visudo myself, and saw that it was using nano !


More information about the ubuntu-users mailing list