3.2 User Management Flashcards

1
Q

what command is used to create a user?

A

sudo adduser <username>

//it will prompt you to add the password

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

How do you assign a password to a user?

A

sudo passwd <username>

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

How do you update a user’s name?

A

sudo usermod -l new_username old_username

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

How do you display all users?

A

cat /etc/passwd

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

How do you delete a user?

A

sudo userdel <username>

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