Managing Groups Flashcards

1
Q

How do you add a user named nick with a home directory named nick and a password of P@$$w0rd

A

sudo useradd -m nick -p P@$$w0rd

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

How do you create a new group?

A

sudo groupadd [group_name]

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

How do you add the user nick to group admin

A

sudo usermod -a -G admin nick

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

Which file contains information about groups?

A

/etc/group

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

How do you rename a group?

A

sudo groupmod -n [new_name] [old_name]

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