Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting sudo to not ask for a password

Status
Not open for further replies.

linuxMaestro

Instructor
Jan 12, 2004
183
US
I'm trying to get sudo to not ask for a password, I have
# Cmnd alias specification
Cmnd_Alias SUROOT = !/bin/su "", !/bin/su -, /bin/su - [a-z]*, /bin/su [a-z]*, !/bin/su root, !/bin/su - root, !/bin/su -[a-z$
Cmnd_Alias NOTROOT = /bin/cat /etc/sudoers
# Defaults specification
Defaults:ADMINS !lecture, !authenticate

# User privilege specification
root ALL=(ALL) ALL
ADMINS ALL=SUROOT,NOTROOT NOPASSWD: ADMINS
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

I tried NOPASSWD: ADMINS and NOPASSWD: ALL in the # User privilege specification section but it says
>>> sudoers file: syntax error, line 20 <<<
What now?

Any ideas?
 
From my sudoers file
Code:
# Defaults specification
Defaults       !authenticate

Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top