Quiz 7B

Ace your homework & exams now with Quizwiz!

[APUE04] Which one of the following statements is NOT correct? Consider the file and/or directory access. The file access tests that the kernel performs each time a process opens, creates, or deletes a file depend on the owners of the file (st_uid and st_gid), the effective IDs of the process (effective user ID and effective group ID), and the supplementary group IDs of the process, if supported. The two owner IDs are properties of the file, whereas the two effective IDs and the supplementary group IDs are properties of the process. The tests performed by the kernel are as follows:

If the process is executing the file, the user-execute bit must be on if the process group ID of the process equals the group ID of the file (i.e., the process group owns the file).

[APUE04] Every process has six or more IDs associated with it. The saved set-user-ID and saved set-group-ID contain copies of ___, respectively, when a program is executed.

The effective user ID and the effective group ID

[APUE04] Every process has six or more IDs associated with it. This ____ determines one's file access permissions.

The effective user ID and the effective group ID

[APUE04] Which one of the following statements is NOT correct?

The function which removes a directory entry is always called "delete."

[APUE04] Which one of the following statements is NOT correct? Using mkdir command, testdir has been just created. Consider the figure below as a result.

The i-node whose number is 2549 has a type field of ''directory'' and a link count equal to 3.

[APUE04] Every process has six or more IDs associated with it. ____ identify who we really are. These two fields are taken from our entry in the password file when we log in. Normally, these values don't change during a login session, although there are ways for a superuser process to change them.

The real user ID and the real group ID

[APUE04] Every process has six or more IDs associated with it. Normally, the effective user ID and the effective group ID equals ____ respectively.

The real user ID and the real group ID

[APUE04] Every process has six or more IDs associated with it. Which one of the following statements is NOT correct?

When one executes a program file, the effective user ID of the process is usually the virtual user ID, and the effective group ID is usually the virtual group ID.

[APUE04] On contemporary systems, the use of ___ has been extended. The Single UNIX Specification allows this bit to be set for a directory. If this is set for a directory, a file in the directory can be removed or renamed only if the user has write permission for the directory and meets one of the following criteria: (a) Owns the file, (b) Owns the directory, and (c) Is the superuser.

the sticky bit

[APUE04] The directories /tmp and /var/tmp are typical candidates for ___. These are directories in which any user can typically create files. The permissions for these two directories are often read, write, and execute for everyone (user, group, and other). But users should not be able to delete or rename files owned by others.

the sticky bit

[APUE04] The ____ function sets the file mode creation mask for the process and returns the previous value.

umask

[APUE04] Which one of the following statements is not correct? The stat function returns ___ of the following file information.

v-node number

[APUE04] Which one of the following statements is NOT correct? Consider the file and/or directory access, and chmod command.

Read permission lets us read the directory, obtaining and searching through a list of all the filenames in the directory.

[APUE04] Which one of the following statements is NOT correct? Consider umask command.

Like the octal format with umask command, the symbolic format specifies which permissions are to be denied (i.e., clear in the file creation mask) instead of which ones are to be denied (i.e., set in the file creation mask).

[APUE04] Every process has six or more IDs associated with it. ____ contain copies of the effective user ID and the effective group ID, respectively, when a program is executed.

The saved set-user-ID and the saved set-group-ID

[APUE04] Which one of the following statements is NOT correct? Consider umask bits.

The umask value 0700 is to allow the user (owner) to read, write, or execute the files

[APUE04] Every process has six or more IDs associated with it. Which one of the following statements is NOT correct?

The virtual user ID and the virtual group ID

[APUE04] Which one of the following statements is NOT correct? Consider the file and/or directory access.

To delete an existing file, we need only the write permission for the file itself.

[APUE04] Which one of the following statements is not correct? Consider umask.

To ensure that anyone can read a file, we should set the umask to 0777.


Related study sets

Computer Terms in TLE/Computer 6

View Set

Chapter 4 ACCT (Extra credit/Concept videos)

View Set

Chapt 15 Christianity & The Formation of Europe

View Set

motivación emoción examen final

View Set

Regulations - Securities Exchange Act of 1934

View Set

Compact English-Russian Phrase-Book

View Set

Fiscal Policy, Income and expenditures equilibrium

View Set