Sudo problem, it don't ask for password??!Forum: Other Help Topics Topic: Sudo problem, it don't ask for password??! started by: Nick-xx Posted by Nick-xx on Sep. 09 2006,06:26
i have DSL in a USB flash and i'm using the default booting and automounting without instaling it to the pen drive. Also i have changed the passwd for dsl and root and saved in the backup now when i use "sudo su" or any comand with sudo it doesn't ask me for a password, then i looked in the sudoers file and i see that it has a NOPASSWD tag. Then i think the problem is with this tag, but after putting "dsl ALL = ALL " like in sudoers manual say, then again when i use "sudo su" it doesn't ask me for any password, i want it to prompt me for a password. PS: i already backup up the password file and i know that the users have password set. Any help will be apreciated and sorry for the bad english again Posted by mikshaw on Sep. 09 2006,15:12
Did you also back up /etc/sudoers?
Posted by Nick-xx on Sep. 09 2006,18:18
Yes i also backup the sudoers file but it don't ask me for passwd
Posted by mikshaw on Sep. 09 2006,19:40
I've never quite understood the syntax of sudoers, but you might try this instead:dsl ALL=(ALL) ALL and maybe remove the knoppix line, since it doesn't really apply to anything anymore. Posted by Nick-xx on Sep. 09 2006,19:45
i have already tried this again no diference it doesn't ask me for any password . Its so strange.
Posted by mikshaw on Sep. 09 2006,20:19
Don't know if this helps, but...
Have you tried this: dsl ALL=PASSWD: ALL %staff ALL=PASSWD: ALL Maybe the staff group is being allowed to run sudo without authentication Posted by brianw on Sep. 10 2006,02:32
Here is a sudoer man page with plenty of examples:< http://www.die.net/doc/linux/man/man5/sudoers.5.html > |