Test Your Knowledge

   

1:

A file has rwxr-xr-- permissions. It is owned by a user mark belonging to a group users . You are logged in as user jim belonging to group users . What permissions do you have for this file?

  1. only read permission

  2. read, write, and execute permissions

  3. read and execute permissions

  4. You don't have any permissions for the file, as the file is owned by another user.

2:

You are logged in as user jim and create a file myfile and want to give it to a user mark by changing its ownership. The command for this is:

  1. chown mark myfile jim

  2. chown mark myfile

  3. chmod mark myfile

  4. You can't change file ownership.

3:

The id command without any argument lists:

  1. user ID

  2. group ID

  3. both user and group IDs

  4. system ID

4:

You want to change your group ID temporarily. Which command will you use?

  1. the newgrp command

  2. the chgrp command

  3. the id command

  4. all of the above

5:

The system administrator wants a command to be executed with superuser permissions no matter which user executes it. He or she will set:

  1. the SUID bit

  2. the SGID bit

  3. the sticky bit

  4. the execution bit

6:

A file myfile already exists. You use command touch myfile . What will be the effect of this command?

  1. It will erase the file and create a new file with the same name and zero byte size .

  2. It will rename the file as myfile.bak and create a new file with the name myfile and zero byte size.

  3. It will change the file modification date and time to the current value.

  4. It will do nothing, as the file already exists.

7:

You are logged in as user boota belonging to group users . When you list files using the ll command, you see the following list.

 -rwxrw-r--   1 jim   class    0 Sep  8 18:06 myfile 

What operations can you perform on this file?

  1. read, write, and execute

  2. read and write

  3. read only

  4. modify and delete

8:

You use the command chmod 764 myfile . It provides:

  1. read, write, and execute permissions to the owner

  2. read and write permission to the group members of the owner of the file

  3. read permission to all users of the system

  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