can you count the letter "e" in:
q: visudo syntax error what am i doing wrong here as this line is making visudo fail
dhiller2        all= all, !nshells, !nsu      nopasswd: all
this line works
dhiller2        all= all, !nshells, !nsu
how to fix this?
and yes, i know there are ways to get around this...this is just to remind our admins that policy is not sudo su - and you should be using sudo to run all commands.
thanks,
dean

a: use it like this.
dhiller2 all= nopasswd: all, !nshells, !nsu
it will work. tested on my machine itself.

a: you need an additional comma after !nsu.
the line below passed visudo but i don't know if it has the effect you want.
dhiller2 all= all, !nshells, !nsu, nopasswd: all

user
The given text has 37 "e"s.
assistant