On Wed, May 2, 2012 at 6:30 AM, Indulekha <indule...@theunworthy.com> wrote:
>
> I don't think it's a bug...
> If you add your user to the sudo group and use the line:
>
> yourusername   ALL=(ALL) NOPASSWD: ALL
>
> in /etc/sudoers, everything should work and you'll
> get no password prompt. Of course, replace "youusername"
> with your actual username. :)

If you add your user account to /etc/sudoers, there's no need to be in
the sudo group.  The configuration in the default /etc/sudoers is
this:

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL

You can just add the NOPASSWORD directive to that line (which I'd not
recommend) if you put the user in the sudo group thusly:

# usermod -G sudo -a username

My recommendation would be to simply use usermod to add your username
to the sudo group and call it done (do not edit /etc/sudoers at all).
You'll then get the same behavior that you see in Ubuntu (with the
exception that root still has a real password).

-- 
Chris


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOEVnYs9=Mp0s7vktpn9w_vdbbuqjquhvonfpzapz5...@mail.gmail.com

Reply via email to