Users Flashcards

1
Q

Where is the location of passwords?

A

/etc/shadow

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

Where is the location of all system and user accounts stored?

A

/etc/passwd

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

What is the location of all groups stored on the system?

A

/etc/group

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

What is the command to add a user?

A

useradd

i. e user add -m -d /home/newuser newuser
* -m copies items to user from /etc/skel

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

What is the command to remove a user?

A

userdel

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

What denotes a user not having the functionality to sign in located at /etc/shadow?

A

*

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

What denotes a user being blocked from sign in located at /etc/shadow?

A

! before hashed password

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

What is the directory that contains items that will be copied to a user profile?

A

/etc/skel

i. e useradd -m
* -m copies items to user from /etc/skel

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

What is the command to set a password for a specific user?

A

passwd

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

What is the command to lock a user account?

A

usermod -L

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

What is the command to unlock a user account?

A

usermod -U

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

What constitutes the information found in /etc/passwd?

A

username: passwdplaceholder:userid:groupid:additionalinfo:homedirectory:defaultshell
luke: x:1000:1000:luke,,,:/home/luke:/bin/bash
* password are now stored in /etc/shadow

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