sudo doesn't ask for a password - What can i do?

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

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct