Results 1 to 3 of 3
Nothing like a configuration file to make you feel inept.
I'm not being able to set the system to ask for user authentication for sudo.
The sudoers is quite simple ...
- 08-22-2007 #1Linux Newbie
- Join Date
- Apr 2007
- Posts
- 211
"sudo" doesn't asks for password

Nothing like a configuration file to make you feel inept.
I'm not being able to set the system to ask for user authentication for sudo.
The sudoers is quite simple by now, which makes the whole thing even more ridiculous. I've been looking a little bit over the internet, and I've found that both "authenticate" in "Defaults" and PASSWD are somewhat assumed by default. I've tried to make both explicit, nevertheless, but didn't have effect.
I've also tried this "authenticate" option in another line, tried replacing the env_reset by it, and tried a few variations on the line that sets the rules specifically for the user "user", some of these actually had syntax errors, but the ones which didn't had, also did'nt work for requiring password anyway.Defaults env_reset, authenticate
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
user ALL = PASSWD: ALL
I assume I don't have to log off and in again in order to the changes on sudoers take effect, since the "answer" to the syntax error was immediate...
- 08-24-2007 #2try thisuser ALL = PASSWD: ALLthis works for me.Users had to give password for acess and for no password i use thisCode:
user ALL=(ALL) ALL
Code:user ALL=(ALL) NOPASSWD: ALL
life is the greatest opportunity that the nature had given you
- 08-26-2007 #3Linux Newbie
- Join Date
- Apr 2007
- Posts
- 211
Thanks for the answer... I just noticed that answer now... really got to sign off a bunch of mail lists and bulletins...
But that didn't work for me. This line would work if everything was normal and password was required by default, I guess, but apparently that's not the case with me for some reason...
I even tried
just to test if this "(ALL)" wouldn't be the reason...Code:ALL=(ALL) PASSWD: ALL


Reply With Quote