Creating Accounts from the Shell Flashcards

1
Q

Which command allows you to add a user?

A

sudo adduser [user_name]

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

What is another command to add a user other than adduser?

A

sudo useradd -s /bin/bash -d [user_directory_path] -m -G [group] [user]

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

How do you change a users password?

A

sudo passwd [username]

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