Users (root, sodo, Setup) Flashcards

1
Q

Adding user to system

A

useradd_“username”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To change / edit user group assignment

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Used to check user group associations

A

groups “username”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Used to delete user

A

userdel -r “username”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Changes the password.

A

password “username”

- follow by typing new password at the prompt and re-typing it. Need to use “#” for the command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Creates a file without editing it

A

touch

Ex: touch myfile will create a file called myfile without editing it (like running nano or vi would)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

File permissions

A

User Group Other (global)

r w x r w x r w x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly