Hacker News new | ask | show | jobs
by deberon 638 days ago
The visudo command is often times available as well. It won’t let you save a malformed sudoers file. Finding other footguns though is an exercise for the reader.
1 comments

It will however let you accidentally break "sudo su -" and happily tell you to go fuck yourself afterward.
sudo -s or sudo -i
That will not change sudo's attitude toward you once you've bungled the sudoers file.
visudo
No. Visudo will only stop you from making a malformed sudoers file not from deleting lines you don’t understand.