30 Mar
2021
30 Mar
'21
20:58
Hi, I managed to solve the problem. thanks for all the answers!! Karl Am 30.03.21 um 21:09 schrieb Karl Sinn:
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
After a restart I expected user karl to be able to run su without password.
It didn't work, where's my mistake?
thanks, Karl