Summary

Summary

In this chapter, we have examined the basic procedures for managing users and groups on a Solaris system. Since all processes and threads are executed with a real or effective user and group ID, it’s important for administrators to understand how to manage these entities effectively.

Questions

1. 

What are the typical uses for a Solaris user account (choose two only)?

  1. Spawning a shell

  2. Connecting networks together

  3. Performing hardware maintenance

  4. Scheduling applications to run on specific times and dates

 A or D. Most users log in with a shell and use it to launch applications.

2. 

Which of the following groups contains only default system accounts?

  1. root, daemon, bin, sys, lp, adm, www

  2. root, samba, bin, sys, lp, adm, uucp

  3. root, daemon, bin, sys, lp, adm, uucp

  4. oracle, daemon, bin, sys, lp, adm, uucp

 C. www, samba, and oracle are common accounts on Solaris, but they are user-installed.

3. 

What are the names of the two password files used by Solaris?

  1. /etc/passwd, /etc/secure

  2. /etc/password, /etc/secure

  3. /bin/passwd, /etc/group

  4. /etc/passwd, /etc/shadow

 D. The passwd file doesn t contain passwords anymore, but retains all user details.

4. 

Which of the following users has a default UID of 0?

  1. bin

  2. root

  3. sys

  4. adm

 B. The root user has a default UID of 0, but this can be modified.

5. 

Which of the following useradd commands is valid?

  1. useradd -u abc -g 10 -d /home/abc –m –k/etc/skel –s /bin/sh –c "ABC" abc

  2. useradd -u 1023 -g abc -d /home/abc –m –k/etc/skel –s /bin/sh –c "ABC" abc

  3. useradd -u 1023 -g 10 -d /home/abc –m –k/etc/skel –s /bin/sh –c "ABC" abc

  4. useradd -u abc -g abc -d /home/abc –m –k/etc/skel –s /bin/sh –c "ABC" abc

 C. UIDs and GIDs must be numeric.

6. 

Which of the following usermod commands would change the UID of the www account from 1004 to 1005?

  1. usermod -u 1005 www

  2. usermod -u 1004 -n 1005 www

  3. usermod www –n 1005

  4. usermod www 1004 1004

 A. Only the UID needs to be identified with the  u parameter.

7. 

A locked account can be identified in /etc/passwd by which of the following entries?

  1. *LOCKED*

  2. LOCKED

  3. *LK*

  4. *

 C. *LK* indicates a locked account.

8. 

Which of the following userdel commands would delete account melissa (UID 1002)?

  1. userdel -r melissa

  2. userdel -u 1002

  3. userdel -uid melissa

  4. userdel -r 1002

 D. UIDs must be used when deleting accounts.

9. 

Which of the following groupadd commands is valid?

  1. groupadd –g 100 staff

  2. groupadd –g 100 -s staff

  3. groupadd staff -gid 100

  4. groupadd –g staff 100

 A. UIDs must be used when adding groups.

10. 

Which of the following characteristics cannot explicitly be set using admintool?

  1. The primary group

  2. The login shell

  3. An expiry date for the user’s account

  4. File permissions for the home directory

 D. admintool can be used to set the primary group, login shell, and an expiry date, but cannot perform normal shell tasks.

Answers

1. 

A or D. Most users log in with a shell and use it to launch applications.

2. 

C. www, samba, and oracle are common accounts on Solaris, but they are user-installed.

3. 

D. The passwd file doesn’t contain passwords anymore, but retains all user details.

4. 

B. The root user has a default UID of 0, but this can be modified.

5. 

C. UIDs and GIDs must be numeric.

6. 

A. Only the UID needs to be identified with the –u parameter.

7. 

C. *LK* indicates a locked account.

8. 

D. UIDs must be used when deleting accounts.

9. 

A. UIDs must be used when adding groups.

10. 

D. admintool can be used to set the primary group, login shell, and an expiry date, but cannot perform normal shell tasks.



Part I: Solaris 9 Operating Environment, Exam I
 
ASPTreeView.com
 
Evaluation has ґёНЅФ»јЗЛЛexpired.
Info...