sudo doesn't ask for a password - What can i do?
Recently i edited my sudoers file and i added at the bottom of the file the following line:
myusername ALL=(ALL) ALL
Now sudo works BUT it doesn't ask for a password. Isnt the default behavior that sudo asks for the first time for a password? And then it has some timeout of 10 minutes or so where it doesnt ask again for the paasword?
I logged off for an hour, rebooted again.. nothing.. same behavior. When i use sudo it doesnt ask for a password and i think its a big securoty issue. How can i solve this?
For your info i am using Ubuntu 10.04 LTS
Thanks in advance
George
1 Reply
@gmantakis:
Hi to all,
Recently i edited my sudoers file and i added at the bottom of the file the following line:
myusername ALL=(ALL) ALL
Now sudo works BUT it doesn't ask for a password. Isnt the default behavior that sudo asks for the first time for a password? And then it has some timeout of 10 minutes or so where it doesnt ask again for the paasword?
I logged off for an hour, rebooted again.. nothing.. same behavior. When i use sudo it doesnt ask for a password and i think its a big securoty issue. How can i solve this?
For your info i am using Ubuntu 10.04 LTS
Thanks in advance
George
Check for a line with NOPASSWD in it.