Creating Linux Users Flashcards

1
Q

What is the command to add a new user?

A

sudo useradd -d /home/username -m -G groupname, groupname username

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

What is the command to add a new group?

A

sudo addgroup groupname

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

How do you add a user to a new group?

A

sudo usermod -G groupname -a user

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

How do you delete a user?

A

sudo userdel -rf username

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

What folder is used as a template when a new user is created?

A

/etc/skel

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

How do you change a users password?

A

sudo password username

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