The following questions will help you measure your understanding of the material presented in this chapter. As no multiple choice questions appear on the Red Hat exams, no multiple choice questions appear in this book. These questions exclusively test your understanding of the chapter. It is okay if you have another way of performing a task. Getting results, not memorizing trivia, is what counts on the Red Hat exams. There may be more than one answer to many of these questions.
1. | What's the standard minimum user ID number for regular users on Red Hat distributions? ___________________________________________________ |
|
2. | What command at a GUI-based text console starts the Red Hat User Manager? ___________________________________________________ |
|
Answers
1. | The minimum user ID number for regular users on Red Hat distributions is 500. It's 100 on many other Linux distributions. |
2. | The command in a GUI-based text console that starts the Red Hat User Manager is system-config-users. |
3. | If you want to add files to every new user account, what directory should you use? ________________________________________________ |
|
Answers
3. | The directory of files that is automatically added to every new user account is /etc/skel. |
4. | The system-wide file associated with the bash shell is _________________. |
|
Answers
4. | The system-wide configuration file associated with the bash shell is /etc/bashrc. |
5. | You are running an ISP and provide space for users' Web pages. You want them to use no more than 40MB of space, but you will allow up to 50MB until they can clean up their stuff. How could you use quotas to enforce this policy? Set the hard limit to _________________________ Set the soft limit to __________________________ Enable grace periods with the following command:_____________________ |
|
6. | If you wanted to configure quotas for every user on the /home directory, you'd add the following option to the /home directory line in /etc/fstab:
|
|
Answers
5. | Set the hard limit to 40MB; set the soft limit to 50MB. You can set these limits on user1 with the edquota -u command; once created, you can apply them to all users with the following command:
# edquota -p user1 `awk -F: '$3 > 499 {print $1}' /etc/passwd` Then if you want to enable grace periods for all users, run the edquota -t command. |
6. | If you wanted to configure quotas for every user on the /home directory, you'd add the usrquota option to the /home directory partition directive in /etc/fstab. |
7. | What command would set the SGID bit on the /home/developer directory? ___________________________________ |
|
8. | When creating a special group, should you use the default Group ID for a regular user? ____________________________________ |
|
Answers
7. | There are two different commands available to set the SGID bit on the /home/developer directory. If that's all you want to do, run the following command:
# chmod g+s /home/developer Alternatively, if you're also assigning full user and group permissions to /home/developer, you could run the following command:
# chmod 2770 /home/developer |
8. | When creating a special group, you should not use the default Group ID for a regular user, unless you want to allow others in the group access to all files of that user. |
9. | What are the four basic Pluggable Authentication Modules types? ______________ ______________ ______________ ______________ |
|
10. | You are editing the PAM configuration file by adding a module. Which control flag immediately terminates the authentication process if the module succeeds? _______________ |
|
Answers
9. | The four basic Pluggable Authentication Modules types are: auth, account, password, and session. |
10. | You are editing the PAM configuration file by adding a module. The sufficient control flag immediately terminates the authentication process if the module succeeds. |
11. | What two pieces of information do you need to connect to an NIS server? ____________________ ____________________ |
|
12. | If your domain is example.org, what is your LDAP Search Base DN? dc=____________________ dc=____________________ |
|
Answers
11. | The two pieces of information you need to connect to an NIS server are the NIS domain name and NIS server (IP address or FQDN). |
12. | If your LDAP domain is example.org, your LDAP Search Base DN is dc=example, dc=org. |