The last line of the /etc/sudoers file is:
grep -i sudosudo /etc/sudoers
Cmnd_Alias SUDOSUDO = /usr/bin/sudo
ALL ALL=!SUDOSUDO
why? What does it exactly do?
|
The last line of the /etc/sudoers file is:
why? What does it exactly do? |
||||
|
That is to prevent someone from running sudo sudo, but it's not very effective. It is easily circumvented by copying the sudo binary to another location. for example: cp /bin/sudo /sbin/sudo; sudo /sbin/sudo su -. Best thing to do is not allowing "root ALL=(ALL) ALL" |
|||||||
|
SUDOSUDOis probably an alias. Does it exist elsewhere in the file? – Chris Down Dec 6 '12 at 12:53sudo sudo .... – Kevin Dec 6 '12 at 14:48