Workbook 3 Flashcards
What is the name of the file in which UID’s are found?
/etc/passwd [3/4]
Which fields in /etc/passwd identify a user’s (i) home directory, (ii) login shell?
Home Directory: Field 6.
Login Shell: Field 7. [3/5]
In which file are user passwords stored?
/etc/shadow [3/5]
What is a system user?
Users for components of the system.
For example, the processes that handle email often run as the username
mail. [3/6]
What is the uid of the root user?
- [3/6]
What is the uid range of (i) system users and (ii) normal users?
System Users: 1-499.
Normal Users: 500+ [3/7]
What is the name of the file in which GID’s are found?
/etc/group [3/12]
Which fields in /etc/group identify a group’s (i) name and (ii) members?
Group Name: 1
Group Members: 4. [3/13]
What is a user’s primary group and where can you find that piece of data?
The default group that is associated with the user. By default it is the users username. It can be found in /etc/passwd [3/13]
What is a user’s secondary group(s) and where can you find that piece of data?
Any other groups that multiple users can be a part of. This is found in /etc/group [3/13]
What commands are used to change group memberships?
usermod and groupmod. This can only be done by root. [3/14]
What does the id command output?
User and Group information. [3/20]
What commands can be used to determine who is logged in?
who, users, and w. [3/20]
You are currently logged in as user prince. Give a command line to temporarily switch your identity to the root user.
su - [3/28]
What is the difference between (i) su and (ii) su – ?
login shells. [3/28]