User Management Flashcards

1
Q

add a user in Ubuntu server, run the following command(s):

A

sudo adduser username

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

delete a user account and its primary group, run the following command(s):

A

sudo deluser username

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

To temporarily lock a user account, run the following command(s):

A

sudo passwd -l username

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

to unlock a user account, run the following command(s):

A

sudo passwd -u username

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

to add a personalised group, run the following command(s):

A

sudo addgroup groupname

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

to delete a personalised group, run the following command(s):

A

sudo delgroup groupname

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

to add a user to a group, run the following command(s):

A

sudo adduser username groupname

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

to list groups, run the following command(s):

A

groups

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

to change one’s password, run the following command(s):

A

passwd

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

to change other user’s password, run the following command(s):

A

sudo passwd username

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

To view the current status of a user account, run the following command(s):

A

sudo chage -l username

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

to change a user’s password expiration value, run the following command(s):

A

sudo chage username

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