Monday, November 15, 2010

[SOLVED] Can't use sudo + /etc/sudoers +RHEL 5 +nopasswd

When using no password you may be thrown a error
ex.
>>> sudoers file: syntax error, line xx <<<
sudo: parse error in /etc/sudoers near line xx


Solution :
if you are giving a single command then just add a comma

user ALL=command, NOPASSWD: ALL

instead of ( This will be throwing an error)

user ALL=command NOPASSWD: ALL

No comments: