0

Nplt user not have the permission to run the command crontab -l

so I add this lines in visudo

Nplt ALL=(root) NOPASSWD: crontab -l

but I get this error

isudo: >>> /etc/sudoers: syntax error near line 21 <<<
What now? ^Cvisudo exiting due to signal: Interrupt

what is wrong in my syntax?

3

Use

Nplt ALL=(root) NOPASSWD: /usr/bin/crontab -l

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.