Chapter 7: Administering The System Flashcards

1
Q

From where is group membership controlled?

A

<b>/etc/group</b>

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

What would you type to change to the group <b>ballsack</b>?

A

<b>$ newgrp ballsack</b>

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

How do you change the group membership of a specific file?

A

You can use either <b>chgrp</b> or <b>chown</b>

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

Does Linux define users and groups by their names?

A

No. It defines them with User IDs (UIDs) and Group IDs (GIDs).

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

What is the GID 0?

A

This is <b>root</b>. The UID 0 is also <b>root</b>

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

Where can you find out which user and group IDs are being used?

A

in <b>/etc/passwd</b> and <b>/etc/group</b>

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

How many accounts can be created on a Linux system?

A

more than 4.2 billion.

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

Where are account numbering limits set?

A

<b>/etc/login.defs</b>.

Generally, the minimum and maximum values are 1000 and 60000, respectively.

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

Can you create multiple users or groups that share the same ID?

A

Yes. Should you? No. They will have different home directories and shit like that, but they will have the same permissions.

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

What command is used to create new users?

A

<b>useradd</b>. How complicated :)

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