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
2
Q
What is the command to add a new group?
A
sudo addgroup groupname
3
Q
How do you add a user to a new group?
A
sudo usermod -G groupname -a user
4
Q
How do you delete a user?
A
sudo userdel -rf username
4
Q
What folder is used as a template when a new user is created?
A
/etc/skel
5
Q
How do you change a users password?
A
sudo password username