How to add a user to the sudoers list:
- Open a Root Terminal and type visudo (to access and edit the list)
- Using the up/down arrows, navigate to the bottom of the sudoers file that is now displayed in the terminal
- Just under the line that looks like the following:
- Add the following (replacing user with your actual username):
- Now press Ctrl+X and press Y when promted to save
root ALL=(ALL) ALL
user ALL=(ALL) ALL
That's it, your new user now has root privileges!
Example Sudoers Screenshot:
If you have this in the /etc/sudoers
man ALL=(ALL) ALL
woman ALL=(ALL) ALL
woman ALL=(ALL) ALL
Then man can even change woman's password and then woman can’t even login anymore.:-) cool uuhhh.
No comments:
Post a Comment