Find the answer to your Linux question:
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 ...
  1. #1
    Linux 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.

    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'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.

    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...

  2. #2
    Linux User abhishek456's Avatar
    Join Date
    Dec 2006
    Posts
    470
    user ALL = PASSWD: ALL
    try this
    Code:
    user	ALL=(ALL)	ALL
    this works for me.Users had to give password for acess and for no password i use this

    Code:
    user	ALL=(ALL) 	NOPASSWD: ALL
    life is the greatest opportunity that the nature had given you

  3. #3
    Linux 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

    Code:
    ALL=(ALL) PASSWD: ALL
    just to test if this "(ALL)" wouldn't be the reason...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...