I don't want any admin users in my system to execute the following command other than root.
"sudo cp /etc/sudoers "
Is it possible to block it for admin users only?
I have tried lot but didn't get anything?
I don't want any admin users in my system to execute the following command other than root.
"sudo cp /etc/sudoers "
Is it possible to block it for admin users only?
I have tried lot but didn't get anything?
If you don't trust someone to have full shell access on your system, don't give them shell access at all.
You want to stop cp
command what about other commands that acts like cp
, what about if admins use scp command .
Am not saying its impossible to block this command , but a play around trick will defeat your goal .
sudo su
and provide my sudo password.
– Rinzwind
Aug 12 '14 at 11:49
sudo
anyway? – Jacob Vlijm Aug 12 '14 at 11:16