Chapter 7: Administering The System Flashcards
From where is group membership controlled?
<b>/etc/group</b>
What would you type to change to the group <b>ballsack</b>?
<b>$ newgrp ballsack</b>
How do you change the group membership of a specific file?
You can use either <b>chgrp</b> or <b>chown</b>
Does Linux define users and groups by their names?
No. It defines them with User IDs (UIDs) and Group IDs (GIDs).
What is the GID 0?
This is <b>root</b>. The UID 0 is also <b>root</b>
Where can you find out which user and group IDs are being used?
in <b>/etc/passwd</b> and <b>/etc/group</b>
How many accounts can be created on a Linux system?
more than 4.2 billion.
Where are account numbering limits set?
<b>/etc/login.defs</b>.
Generally, the minimum and maximum values are 1000 and 60000, respectively.
Can you create multiple users or groups that share the same ID?
Yes. Should you? No. They will have different home directories and shit like that, but they will have the same permissions.
What command is used to create new users?
<b>useradd</b>. How complicated :)