I would like user a to run be allowed to run all commands as user b. Unfortunately adding a ALL=(b) NOPASSWD: / to /etc/sudoers via visudo just yields into syntax errors.

How can I fix this?

link|improve this question
feedback

1 Answer

Try

a ALL=(b) NOPASSWD: ALL

A can, on ALL hosts, as user B, without needing to enter a password, run ALL commands

link|improve this answer
thanks, that it! – grepper Apr 9 '11 at 15:27
1  
Close... The syntax is correct, but the actual meaning is: A can run the following commands on host "ALL(1)" as user B. The commands are "ALL(2)" with no password. – Majenko Apr 9 '11 at 15:28
1  
@Matt Thanks, fixed! – Daniel Beck Apr 9 '11 at 15:46
feedback

Your Answer

 
or
required, but never shown

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