3 ms·
This is why you have visudo which checks your changes before saving. Ps just mentioning it in case you didn't know about it. I know there's still ways to lock
by GekkePrutser 4y ago
This is why you have visudo which checks your changes before saving.
Ps just mentioning it in case you didn't know about it. I know there's still ways to lock yourself out that visudo doesn't catch.
- dhosek 4y agoThe command back when I did this was sudoedit but I didn't know better, although I don't think it did any checking of the file for validity, just made sure that the correct permissions were in place when I was done. Now, the default sudoers file on MacOS has a comment saying to edit with visudo. But there are enough footguns possible with sudo that any friction to using it is a good thing.