Hi everyone,
is config for sudo without password still same in centos 8, because i use this in centos 7 is running well but not in centos 8, it still asking for password
username ALL=(ALL) NOPASSWD:ALL
Regards
Sudo without password in Centos 8
Re: Sudo without password in Centos 8
Probably, but I have:
pam_ssh_agent_auth installed
and
in /etc/pam.d/sudo
Gnome offers ssh key from its keyring to sudo.
pam_ssh_agent_auth installed
Code: Select all
$ sudo cat /etc/sudoers.d/username
Defaults env_keep += "SSH_AUTH_SOCK"
username ALL = ALL
$ sudo ls -l /etc/sudoers.d/jvl
-r--r-----. 1 root root 56 Jan 1 1970 /etc/sudoers.d/username
Code: Select all
auth sufficient pam_ssh_agent_auth.so file=%h/.ssh/authorized_keys
Gnome offers ssh key from its keyring to sudo.