I'm trying to setup
sudo with no password but still I get prompted for password.
I'm using Ubuntu, here is the relevant line from the sudoers configuration file :
gandalf ALL=(ALL:ALL) NOPASSWD: ALL
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Do you have other rules in your
sudoers file, by any chance? The rules are applied in order, so if you have a rule allowing you to run a command with a password prompt followed by another rule that allows you to run the command without a password prompt, you'll have to type the password. Put the no-password rule first.