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

How can a user be setup to sudo (or su -) without entering a password?

share|improve this question
up vote 4 down vote accepted

You control sudo through the sudoers file. To edit this file, run sudo visudo.

I haven't tested this, but I think the following would allow all users in the "cdrom" group to run "sudo k3b" without needing a password:

%cdrom    ALL = NOPASSWD: /usr/bin/k3b


share|improve this answer
that's just what I was looking for. Thanks! – warren Jun 4 '10 at 1:35

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.