Adding a user to the sudoers file?
I know how to add the user to the file basically, but how can I set this for a more or less normal user, with normal privileges and that I sudo to install and such? I have NO idea how to use vi, seriously it hurts my head.
|
You can always create a sudoers file under your normal user account and then copy it in /etc (as root)
Just an idea though |
Quote:
vi is easy though, here are some of the basics: i = insert mode (edit mode) esc = command mode x = delete present character dd = delete whole line dw = delete current word o = start new line for editing from present line a = start editing one character to the right wq = write and quit Shift+ZZ = write to the file and quit |
The sudo package shipped in Slackware right now doesn't seem to respect VISUAL or EDITOR from the environment - see visudo(8) and the configure flags used in the build script for why :)
In other words, learn to use vi :-) EDIT: Pat just pointed out my oversight in the man page :/ I'm leaving the above text here though, as I don't much like to cover up errors :-) From visudo(8): Quote:
|
Quote:
Help......... D: |
Quote:
|
All times are GMT -5. The time now is 07:34 AM. |