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
2
Q
How do you create a new group?
A
sudo groupadd [group_name]
3
Q
How do you add the user nick to group admin
A
sudo usermod -a -G admin nick
4
Q
Which file contains information about groups?
A
/etc/group
5
Q
How do you rename a group?
A
sudo groupmod -n [new_name] [old_name]