Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: sudo does not respect NOPASSWD

  1. #1
    Join Date
    Oct 2005
    Beans
    24
    Distro
    Ubuntu 8.10 Intrepid Ibex

    sudo does not respect NOPASSWD

    when adding to /etc/sudouser

    username ALL=(ALL) NOPASSWD: ALL

    username being my actual user name . I'm still prompted per session for my password

    I know what this line does, and I'm know what I'm doing and have used this 1000 of times on my linux systems.

    I'm wondering why this does not work in ubuntu?
    Schizoid

    bash#_

  2. #2
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo does not respect NOPASSWD

    Did you add the line to the end of your /etc/sudoers file or to the middle/beginning?

  3. #3
    Join Date
    Oct 2005
    Beans
    24
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: sudo does not respect NOPASSWD

    at the beginning. but moving it to bottom does not have an effect.
    Schizoid

    bash#_

  4. #4
    Join Date
    Jul 2006
    Location
    Here
    Beans
    10,545

    Re: sudo does not respect NOPASSWD

    Quote Originally Posted by Schizoid View Post
    when adding to /etc/sudouser

    username ALL=(ALL) NOPASSWD: ALL

    username being my actual user name . I'm still prompted per session for my password

    I know what this line does, and I'm know what I'm doing and have used this 1000 of times on my linux systems.

    I'm wondering why this does not work in ubuntu?
    that's very unsafe, you should make it application specific.

    mine->
    Last edited by kerry_s; May 21st, 2008 at 09:14 PM.

  5. #5
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo does not respect NOPASSWD

    Quote Originally Posted by Schizoid View Post
    at the beginning. but moving it to bottom does not have an effect.
    That's weird. This thread would seem to indicate that positioning matters.

    I've never heard of the /etc/sudouser file. Have you tried editing /etc/sudoers instead?

  6. #6
    Join Date
    Jul 2006
    Location
    Here
    Beans
    10,545

    Re: sudo does not respect NOPASSWD

    also make sure your editing with->
    sudo visudo

    or you will corrupt it and sudo won't work anymore.

    if you have to have something more gui-> sudo xedit /etc/sudoers <-will work, but won't tell you if you made a mistake. to save in xedit click save 2x.
    Last edited by kerry_s; May 3rd, 2008 at 01:16 AM.

  7. #7
    Join Date
    Jan 2007
    Location
    Location: Location:
    Beans
    1,246
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo does not respect NOPASSWD

    holy deja vu
    clear && echo paste url and press enter; read paste; (youtube-dl $paste) | zenity --progress --title="" --text "Downloading, please wait" --auto-close --pulsate && ans=$(zenity --file-selection); gnome-terminal -x mplayer "$ans"

  8. #8
    Join Date
    Oct 2005
    Beans
    24
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: sudo does not respect NOPASSWD

    my mistake I meant /etc/sudoers

    regardless I've never had an issue with position. and moving position still does not resolve the issue.
    Schizoid

    bash#_

  9. #9
    Join Date
    Oct 2005
    Beans
    24
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: sudo does not respect NOPASSWD

    Quote Originally Posted by kerry_s View Post
    also make sure your editing with->
    sudo visudo

    or you will corrupt it and sudo won't work anymore.

    if you have to have something more gui-> sudo xedit /etc/sudoers <-will work, but won't tell you if you made a mistake. to save in xedit click save 2x.
    of course I'm using visudo
    Schizoid

    bash#_

  10. #10
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: sudo does not respect NOPASSWD

    Hmm, well, what does this do?
    Code:
    user host = NOPASSWD: ALL
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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