First, you must be logged in as root. Then, open up the sudoers file (I use nano because I'm lazy. vi is the editor of choice of people that prefer overkill when adding a single line of text):
# nano /etc/sudoers
Here's an example of a simple /etc/sudoers file that will give "justin" access to all root commands.
# User privilege specification
root ALL=(ALL) ALL
justin ALL=(ALL) ALL
root ALL=(ALL) ALL
justin ALL=(ALL) ALL
That's sudo access in its entirety. For more detailed instruction, try http://www.gratisoft.us/sudo/
No comments:
Post a Comment