linuxMaestro
Instructor
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?
# 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?