I already know that I need to tune /etc/sudoers file but I would like to see full information and also a solution that would not require me to use vi editor.
Update: never, ever try to edit the file with something else than visudo.
|
I already know that I need to tune /etc/sudoers file but I would like to see full information and also a solution that would not require me to use Update: never, ever try to edit the file with something else than |
||||
|
|
|
Run
See The man page for Running 'sudo visudo' instead of editing the file directly causes the system to validate the sudoers file before it commits the changes. For instance, if you leave a stray character somwhere, when you save and exit, it will say "there is an error in the sudoers file, what would you like to do?" ... hence giving you a chance to go back in and edit. This actually just happened to me 10 minutes ago. |
|||||||||||
|
|
All information for sudoers can be found from the terminal with the command
You can even user simple text to edit files, however the privs make that difficult.
sudoers is This indicates that Apple really doesn't want you messing with the file. This really is the core security of the OS. Options for editing are vi, emacs, or my personal favourite BBEdit. |
|||
|
|