Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question



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

share|improve this answer
thanks, that it! – grepper Apr 9 '11 at 15:27
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
@Matt Thanks, fixed! – Daniel Beck Apr 9 '11 at 15:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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