• 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

  • 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
    
password25 sudo14 asks4 Posts 5Views 882
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.