Hi,
In all the distros I used I set up the following line in /etc/sudoers :
user ALL=(ALL) NOPASSWD: ALL
Now in LMDE I tried this and the following combinations too :
user ALL=(ALL:ALL) NOPASSWD: ALL
user ALL=NOPASSWD: ALL
(Obviously user here replaces my user name.)
But sudo still keeps asking me for the password. What is different in LMDE in this regard? How can I set up a passwordless sudo? ( Here I mean passwordless for my user only ).
Thank you!
sudo + nopasswd
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Re: sudo + nopasswd
No idea, but if a command is not being accepted, I remember to include spaces to separate parts..
Space out the commands, both to make it more readable and to make sure separate commands get separation..
https://help.ubuntu.com/community/Sudoers
http://www.ducea.com/2006/06/18/linux-t ... -nopasswd/
Space out the commands, both to make it more readable and to make sure separate commands get separation..
https://help.ubuntu.com/community/Sudoers
http://www.ducea.com/2006/06/18/linux-t ... -nopasswd/
- NOPASSWD
If you don’t want to be prompted for any password while running sudo then we can use the NOPASSWD parameter on a particular entry:
admin ALL = NOPASSWD: ALL
this parameter is the opposite of the default PASSWD and will no longer require any password for the user “admin” while running sudo
Re: sudo + nopasswd
Try placing the user ALL=NOPASSWD: ALL entry at the end of the /etc/sudoers file. Your user name is probably in a group entry {%sudo) which is taking precedence if it is being read last in sudoers.
-
- Level 1
- Posts: 2
- Joined: Sat Dec 03, 2011 10:25 am
Re: sudo + nopasswd
Thanks glenn4uk,
Your solution fixed mine sudoers.
Your solution fixed mine sudoers.
Re: sudo + nopasswd
This still works.joelteixeira wrote:Thanks glenn4uk,
Your solution fixed mine sudoers.
% sudo tail -1 /etc/sudoers
my_user ALL = NOPASSWD: ALL