User Account Management Flashcards

1
Q

What is the command to create a local user account?

A

useradd

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

What is the command to create a local group?

A

groupadd

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

What is the command to delete a user and it’s home directory?

A

userdel -r

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

What is the command to delete a group?

A

groupdel

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

What is the command to add a user to a supplementary group?

A

usermod -aG

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

What file contains a list of a systems user accounts?

A

/etc/passwd

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

What is the file that contains the list of groups of which users belong?

A

/etc/group

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

What file contains the hashed passphrase for user accounts and additional properties related to user account passwords?

A

/etc/shadow

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

In what file can you change password requirements for new users?

A

/etc/login.defs

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

What command can you use to change password requirements for a user?

A

chage {-m min days} {-M max days} {-d last day} {-I inactive} {-E expire date} {-W warn days} user

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

What options can you change for password requirements inside the /etc/login.defs in regards to newly created accounts?

A

PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
UID_MIN 1000 (can be changed to 10000 or 20000 to not be guessed so easily (security)

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