- Account Administration
- Administrative System Files
- User Account Initialization Files
- Summary
- Exam Prep Practice Questions
- Need to Know More?
Exam Prep Practice Questions
Question 1
Where are the user account initialization file templates stored?
Under the user account home directories
In the /etc/skel directory
In the /usr/skel directory
In the /skel directory
The correct answer is B. Answer A is incorrect because the user's copy of the templates (not the templates themselves) are stored under the home directories. The directories in answers C and D do not exist.
Question 2
Which of the following are valid settings for the admintool command password field? [Select all that apply.]
Normal password
Account is locked
Cleared until first login
No passwordsetuid only
One-time password
The correct answers are A, B, C, and D. Solaris 9 does not provide a one-time password capability. Therefore, answer E is incorrect.
Question 3
Enter the command used to add a user-defined Bourne shell variable to the user environment so that other programs can use the variable.
The only correct answer is export.
Question 4
Which of the following command-line arguments can be specified when using the useradd or usermod commands? [Select all that apply.]
u uid
g gid
d home_directory
l account
The correct answers are A, B, and C. The UID, GID, and home directory can be defined using the specified useradd command-line arguments and modified using the same usermod command-line arguments. Answer D is incorrect because the -l command-line argument is only used with the usermod command to specify a new account name. The account name for the useradd command does not use the -l command-line argument.
Question 5
Which command can be used to change the members (that is, the user accounts) assigned to an existing group?
usermod
groupmod
groupadd
groupmem
The correct answer is A. The usermod command is used once for each user account that is to be added or deleted from a group. Answer B, the groupmod command, and answer C, the groupadd command, do not affect group membership. Answer D, the groupmem command, does not exist.
Question 6
Enter the full pathname of the system profile.
The correct answer is /etc/profile.
Question 7
What is the -P command-line argument of the useradd command used to specify?
Account password
Execution profile
Initialization file (profile) template
Primary group
The correct answer is B, the execution profile. Answer A is incorrect because a password cannot be specified using the useradd command. All accounts created using the useradd are locked until a password is defined using the passwd or admintool commands. Answer C is incorrect because a template cannot be specified. However a profile template directory can be specified using the -k command-line argument. Answer D is incorrect, because the primary group is specified by the -g command-line argument.
Question 8
When used with the usermod command, what effect does the -o command-line option have?
The existing user information is overwritten.
A duplicate UID can be specified.
The information about the specified user is displayed.
A duplicate GID can be specified.
The user account is deleted.
The correct answer is B. None of the other answers is supported by the usermod command.
Question 9
When using the admintool command to create a user account, which of the following can be specified as the login shell? [Select all that apply.]
Bourne (/bin/sh)
C (/bin/csh)
Korn (/bin/ksh)
Other (specify path)
All the answers are correct.
Question 10
Which commands can be used by root to change a password? [Select all that apply.]
admintool
passmgmt
usermod
passwd
The correct answers are A and D. The passmgmt and usermod commands (answers B and C) do not provide any facility to specify a password.
Question 11
Enter the name of the system used to store user account passwords.
The correct answer is /etc/shadow.