Users (root, sodo, Setup) Flashcards
Adding user to system
useradd_“username”
To change / edit user group assignment
usermod -G “groupname” “username”
Ex: #usermod -G wheel john
- this associates user john with group %wheel, which gives # permissions to user john. When sudo is used to enter a command, us password is not required
Used to check user group associations
groups “username”
Used to delete user
userdel -r “username”
Changes the password.
password “username”
- follow by typing new password at the prompt and re-typing it. Need to use “#” for the command
Creates a file without editing it
touch
Ex: touch myfile will create a file called myfile without editing it (like running nano or vi would)
File permissions
User Group Other (global)
r w x r w x r w x