Home > Articles

  • Print
  • + Share This
This chapter is from the book

Exam Prep Practice Questions

Question 1

Where are the user account initialization file templates stored?

  1. Under the user account home directories

  2. In the /etc/skel directory

  3. In the /usr/skel directory

  4. 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.]

  1. Normal password

  2. Account is locked

  3. Cleared until first login

  4. No password—setuid only

  5. 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.]

  1. u uid

  2. g gid

  3. d home_directory

  4. 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?

  1. usermod

  2. groupmod

  3. groupadd

  4. 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?

  1. Account password

  2. Execution profile

  3. Initialization file (profile) template

  4. 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?

  1. The existing user information is overwritten.

  2. A duplicate UID can be specified.

  3. The information about the specified user is displayed.

  4. A duplicate GID can be specified.

  5. 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.]

  1. Bourne (/bin/sh)

  2. C (/bin/csh)

  3. Korn (/bin/ksh)

  4. 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.]

  1. admintool

  2. passmgmt

  3. usermod

  4. 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.

  • + Share This
  • 🔖 Save To Your Account