I gives user king to be almost super user , and I set the following in /etc/sudoers
king ALL=(ALL) NOPASSWD:ALL
additionally we have other user that called – lincoin ( simple user )
now I access the user lincoin as
su lincoin
whoami
lincoin
pwd
/opt/my_scripts
And I try to run some script with my super user – king from user lincoin - as the following
sudo -u king /opt/my_scripts/change_onwership_on_folders.sh
but I get this:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Is it possible to escape entering of lincoin password , by changing some rule in sudoers file?