6 ms·
chmod u+w /etc/sudoers # edit file to add new user This is _not_ how you do this! I stopped reading once I read that line. I can't take anyone serious who does
by mrothe 15y ago
chmod u+w /etc/sudoers
# edit file to add new user
This is _not_ how you do this! I stopped reading once I read that line. I can't take anyone serious who does this.
- siculars 15y agoshow us the way, o wise one.
- newsoundwave 15y agoNot the original commenter, but I'm guessing they meant two things: 1) You should technically only be editing /etc/sudoers through visudo. 2) You should also have an admin/root group. All you would need to do then is "sudo adduser <blah> admin/root". This group is the one you specified in /etc/sudoers to have root permissions.
- beaumartinez 15y agoWell, thanks for educating us as to how it should be done.
- jazzychad 15y agoMy apologies, please let me know how it should be done? You're right, though, all of my other technical knowledge has become null and void because I goofed this part up.
- mrothe 15y agoSorry, I was in a bad mood. I should have written: This is now how you edit that file. You should edit this file using `visudo`, which "locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for parse errors" (quotes text from man page).