Modifying and Deleting Accounts Flashcards

1
Q

What is the command to view a users password history?

A

sudo chage -l [username]

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

What is the command to view the id of a user?

A

id [username]

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

What is the command to change a users username?

A

sudo usermod - l [new_username] [orig_username]

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

What is the command to change a users group?

A

sudo groupmod -l [new_group] [orig_group]

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

What is the command to delete a user?

A

sudo deluser –remove-home [username]

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

What is another way of deleting a user instead of deluser?

A

sudo userdel -r [username]

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

Which logfile lets you view user account modifications?

A

/var/log/auth.log

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