Self Test


1. 

Consider the following entry in a passwd file of a user:

    bgates:x:420:200:bill_gates:/export/home/bgates:/bin/sh 

What is the user ID for this user?

  1. 420

  2. 200

  3. x

  4. Not possible to tell from a passwd file entry

image from book

2. 

Consider the following entry in a passwd file of a user:

    bgates:x:420:200:bill_gates:/export/home/bgates:/bin/sh 

What is the group ID for this user?

  1. 420

  2. 200

  3. x

  4. Not possible to tell from a passwd file entry

image from book

3. 

Consider the following entry in a shadow file of a user:

    bgates:*LK*:abc12356thab1:::::: 

What does this entry indicate about the user account? (Choose all that apply.)

  1. The account for this user is locked.

  2. The user can type the following password to log into the account: abc12356thab1

  3. The field *LK* represents an encrypted password.

  4. No password is required to log into this account.

image from book

4. 

What is the maximum number of characters you can use in defining a user name?

  1. Six

  2. Seven

  3. Eight

  4. No limit

image from book

5. 

What is the maximum number of secondary groups a user can belong to?

  1. Six

  2. Eight

  3. Fifteen

  4. No limit

image from book

6. 

A user with username bobgone has left your organization. You want to delete the user account without deleting the files that belong to the user. Which of the following will you do?

  1. Change the UID of the account.

  2. Change the username for the account.

  3. Issue the userdel command without the -r option (e.g., userdel bobgone).

  4. Issue the userdel command without the -d option, but you can use -r option.

image from book

7. 

What is the maximum legal value a UID can have in Solaris 10?

  1. 99

  2. 60,000

  3. 100,000

  4. 2,147,483,647

  5. No limit

image from book

8. 

A UID 0 can be assigned to which of the following accounts? (Choose all that apply.)

  1. Any user account

  2. root

  3. No account

  4. home

image from book

9. 

Which of the following is a site initialization file for the Bourne shell?

  1. /etc/.login

  2. /etc/.profile

  3. /etc/profile

  4. $HOME/profile

image from book

10. 

Which of the following files contains the encrypted password?

  1. /etc/passwd

  2. /etc/shadow

  3. /etc/group

  4. /etc/password

image from book

11. 

In order to create a user account, you issued the useradd command without specifying all the options. To find the default values for the unspecified options, the useradd command will look into which of the following files?

  1. /etc/passwd

  2. /etc/default/useradd

  3. /etc/sadm/defadduser

  4. /usr/sadm/defadduser

image from book

Answers

1. 

þ A. The first field in the passwd file entry is the UID.

ý B is incorrect because this is a GID, and C is incorrect because this indicates that the password is encrypted. D is incorrect because a passwd file entry does have information about the user ID.

2. 

þ B. The second field in the passwd file entry is the GID.

ý A is incorrect because this is a UID, and C is incorrect because this indicates that the password is encrypted. D is incorrect because a passwd file entry does have information about the group ID.

3. 

þ A. The value *LK* of the <password> file in the shadow file entry means the account is locked.

ý B is incorrect because this is the encrypted password; C is incorrect because this indicates that the password is locked; and D is incorrect because this account does have a password, which is represented in encrypted form in the second field.

4. 

þ C. A user login name can contain up to eight characters including uppercase or lowercase alphabets and numerals (0–9). It must begin with a letter, there should be no space, and it should include at least one lowercase letter.

ý A, B, and D are incorrect because the maximum number of characters that can be used to compose a user name is eight.

5. 

þ C. A user can be associated with one primary group and 15 secondary groups at maximum.

ý A, B, and D are incorrect because the maximum number of secondary groups that a user can belong to is 15.

6. 

þ C. If you want to delete the files along with the user account, you need to use the -r option with the userdel command.

ý A, B, and D are incorrect because it will not delete the account. D is incorrect because it is the -r option, not the -d option, that deletes the user's home directory along with the user account.

7. 

þ D. The user ID is a positive integer that you can make out of a signed 32-bit (i.e., the maximum value is 231 - 1 = 2,147,483,647. However, the values for the UID should be in the range from 100 to 60, 000 for regular users.

ý A, B, and C are incorrect because these are not the largest integers you can make with a signed 32-bit. E is wrong because there is a limit on the maximum value a UID can have.

8. 

þ B. The root account always has UID 0.

ý A and D are incorrect because the UID 0 should be assigned only to the root account. C is incorrect because the root account always has the UID 0.

9. 

þ C. The site initialization file for the Korn and Bourne shells is /etc/profile, and the site initialization file for the C shell is /etc/.login.

ý A and B are incorrect because these are not the site initialization files for the Bourne shell. D is incorrect because the site initialization files don't live in the home directories.

10. 

þ B. The /etc/shadow file contains the encrypted password information for each user account.

ý A is incorrect because the /etc/passwd file only contains an x in the password field, indicating that the encrypted password exists in the /etc/shadow file. C is incorrect because the /etc/group file contains information about groups, not about individual users. D is incorrect because there is no such system file as /etc/password.

11. 

þ D. The /usr/sadm/defadduser file contains the default values for the options of the useradd command.

ý A is incorrect because the /etc/paaswd file contains the values assigned to the user account, which are not necessarily the default values. B and C are incorrect because there are no such files as /etc/default/useradd and /etc/sadm/defadduser that come with the Solaris OS.




Sun Certified System Administrator for Solaris 10 Study Guide Exams 310-XXX & 310-XXX
Sun Certified System Administrator for Solaris 10 Study Guide Exams 310-XXX & 310-XXX
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net