Special File Types   «Prev  Next»
 

Unix Processes and Ownership - Quiz

Each question is worth one point. Select the best answer or answers for each question.
1. How do UNIX processes come into being?
Please select the best answer.
  A. By carrying out infrastructure duties
  B. By responding to user commands
  C. By being cloned from an already running process
  D. By taking input from a terminal

2. How are process ownership and access permission related?
Please select the best answer.
  A. The process’s permissions are the same as those of its owner and the group to which it belongs, unless you are running the SUID bit.
  B. The owner of a running program has the same permissions as the owner of the file containing the program.
  C. The owner of the init process, root, ultimately owns every child of the init process.
  D. The shell started by su is owned by root; therefore, it owns every process on the system.

3. What is the purpose of the SUID bit?
Please select the best answer.
  A. It changes a user’s login password.
  B. It sets a file to be owned by a more restricted user.
  C. It allows a program to run with more permissions.
  D. It runs with a different PID.

4. What is the purpose of the SGID bit?
Please select the best answer.
  A. It changes a user’s login password.
  B. It sets a file to be owned by a more restricted user.
  C. It allows a program to run with more permissions.
  D. It runs with a different PID.

5. What is the ps command?
Please select the best answer.
  A. A command used to monitor processes on a system
  B. A command used to determine file access permissions
  C. A command used to stop daemon processes on a system
  D. A command used to determine the real user ID of a shell

6. Where is the search path for a command set?
Please select the best answer.
  A. In /usr/ucb/bin
  B. In the system-wide login file
  C. In the system password database
  D. In /sbin

7. You wish to create a periodic process using crond and crontab on a Solaris machine. You have a file named quota, which contains the following line:
15 8 * * *0 /sbin/quotacheck
You have placed this file into the /var/spool/cron/crontabs directory. What is the syntax for establishing a periodic process that runs the /sbin/quotacheck program?
Please select the best answer.
  A. crond -u -root /sbin/quotacheck
  B. crontab /var/spool/cron/crontabs/quota
  C. crond /var/spool/cron/quota
  D. cron /var/spool/cron/quota
  E. crontab -u -root /var/spool/cron/crontabs/quota

8. What is the ancestor of all processes on the system?
Please select the best answer.
  A. The grep process
  B. The su process
  C. The init process
  D. The login process


Correct answers:

Your Score: 0