Monday, 15 November 2010

Solution: sudoers file: syntax error, line xx

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:

Post a Comment