• SUDO w/o password asks for password


    Greetings,

    I am new to Antergos, perhaps this should be in noob, but…

    pacman -Su mg
    in .bashrc “export EDITOR=mg” (in both user and root accounts)
    sourced .bashrc
    visudo
    –> uncommented line to allow wheel group members to sudo w/o password; saved file.
    log out & in, but sudo requires a password.
    /etc/group shows root and my account in wheel. “groups” confirms this.

    Why is sudo still asking for a password??

    Thanks much,
    -KenD

  • @kend said in SUDO w/o password asks for password:

    Why is sudo still asking for a password??

    https://wiki.archlinux.org/index.php/Sudo

    Autodidacta en la VIDA …y en Linux, también.

  • Thanks much.

    Added
    "Defaults:kend !authenticate"

    Works now w/o password.

    Still no idea why uncommenting
    "%wheel ALL=(ALL) NOPASSWD: ALL"

    Still asks for password.

    Thanks again,
    -KenD

  • @kend said in SUDO w/o password asks for password:

    Still no idea why uncommenting
    "%wheel ALL=(ALL) NOPASSWD: ALL"
    Still asks for password.

    Since some time, editing sudoers file directly with visudo is considered to be a bad practice.

    In any case, some settings in sudoers file may be overridden with files, eventually present in the /etc/sudoers.d folder. It is considered to be a good practice to change sudoers settings now.

    Like many modern Linuxes, Antergos places in /etc/sudoers.d the 10-installer file. It’s default content is:

    %wheel ALL=(ALL) ALL
    

    This setting for wheel group overrides the setting in sudoers file. It requires password for wheel group.

    A solution could be to create your own 20-mysudo file in /etc/sudoers and put in it all personalizations you want, including

    %wheel ALL=(ALL) NOPASSWD: ALL
    
asks3 password20 sudo10 Posts 5Views 171
Log in to reply