19 Aug
2023
19 Aug
'23
14:12
On 2023-08-19 04:16, jdd@dodin.org wrote:
Le 19/08/2023 à 05:11, David T-G a écrit :
% if I write % % jdd ALL=(ALL:ALL) NOPASSWD: /usr/bin/sudo -i
Are you running
/usr/bin/sudo -i
when this doesn't work for you?
I just tested the two and the result is the same. ALL works, but the above line asks for jdd passwd. Notice that without any than default, the prompt is not for jdd but for root passwd
Notice that asking for the user password instead of root's password is preferred ;-) There is a setting in the config file that changes that. Defaults targetpw # ask for the password of the target user i.e. root -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))