Page 1 of 1

Use sudo without entering password

PostPosted: Jun 25th, '20, 22:58
by hankivy
I am trying to configure sudo to allow my user to run sudo without reentering my password.
Currently I can run sudo, but only if I reenter my password. There appears to be a time out that allows me to do it sometimes.
In /etc/sudoers I have a line:
Code: Select all
hank   ALL=(ALL)    NOPASSWD: ALL

In /etc/sudoers I do NOT have any line like:
Code: Select all
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

Any help is appreciated.

Re: Use sudo without entering password

PostPosted: Jun 25th, '20, 23:33
by doktor5000
Which groups does hank belong to ?
Also, please check in msecgui what base security level is currently active. See https://doc.mageia.org/mcc/7/en/content ... ml#msecgui

FWIW, I'm using the same sudo rule here and that by itself works fine, no need to enter a password at all.