Test Your Knowledge

   

1:

To change a group ID temporarily, which command is used?

  1. chgrp

  2. newgrp

  3. tmpgrp

  4. any chgrp or newgrp command

2:

What information is a must when you use the useradd command?

  1. the login name of the new user

  2. the login name and path of home directory

  3. the login name and user ID of the new user

  4. the login name, group ID, and user ID of the new user

3:

How many fields are present in the /etc/passwd file?

  1. 5

  2. 6

  3. 7

  4. 10

4:

In which directory are stored the default configuration files for a user?

  1. /etc/default

  2. /etc/skel

  3. /etc/skeleton

  4. /usr/default

5:

What is wrong with the following /etc/passwd entry?

 boota:OV81GT8LCiRO.:1225:20::/home/boota:/sbin/sh: 
  1. A field at the end of the line is missing.

  2. There is an extra colon character at the end of the line.

  3. There are two consecutive colons in the line and information between these two is missing.

  4. The locations of the home directory and the shell are interchanged.

6:

Which command would you use to change a user ID?

  1. id

  2. chmod

  3. usermod

  4. The ID of a user can't be changed.

7:

For what purpose is a restricted shell used?

  1. to stop a user from changing a directory

  2. to stop a user from setting the environment variables SHELL , PATH , and ENV

  3. to disable I/O redirection for a user

  4. all of the above


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

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