30 Mar
2021
30 Mar
'21
19:39
On 30/03/2021 21.09, Karl Sinn wrote:
Hi,
I try to make one bash script to be run as root as a user without the password being asked for.
As a test to see how this works, I edited sudoers with visudo and added this line at the end of the file:
karl ALL= NOPASSWD: /bin/su
Why not karl ALL= NOPASSWD: /usr/local/bin/whateverscript ?
After a restart I expected user karl to be able to run su without password.
Restart is not needed. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)