
Creating users
Here we will simply add a new user to our system and give them wheel access
Add a user
- Add user
useradd -m -g wheel <your_user>- Create password
passwd <your_user>Switch users
To switch to your user run:
su <your_user>Giving your user access to sudo
Make sure you have vi installed
Enter:
visudoand uncomment this line so it looks like this
%wheel ALL=(ALL) ALLif you hate typing your password everytime like me do this instead
%wheel ALL=(ALL) NOPASSWD: ALLNeed more?
check out man pages for the following:
- useradd
- userdel
- groupadd
- groupdel
you can do this by typing:
man <command>TODO