A Unix application performs two independent creation tests. In each test, it requests octal mode 666 for a new regular file and octal mode 777 for a new directory. The process's creation mask is shown in the table.
No parent directory has a default access control list, and no permissions are changed after creation. Complete the table with the resulting three-digit octal modes, without a leading zero. Each answer must contain exactly three digits.
Unlock full course notes by signing up
Encode file permissions numerically
An administrator records the nine ordinary permission characters for three regular files, excluding the file-type character. Complete each numeric mode using read = 4, write = 2, and execute = 1. Enter exactly three octal digits in owner–group–others order, without a leading zero.
Track a small archive operation
Initially, /work/staging contains exactly two ordinary files: a.dat, containing 1200 bytes, and b.dat, containing 800 bytes. The directory /work/archive is empty. The following commands run successfully in the stated order:
cp /work/staging/a.dat /work/archive/a.dat
mv /work/staging/b.dat /work/archive/b.dat
Apply file and directory permissions together
Dana belongs to the group analysts and owns neither of the following entries. The directory /srv/reports has permissions drwxr-x---, owner mira, and group analysts. Inside it, forecast.txt has permissions -rw-rw-r--, owner mira, and group analysts.
Dana can traverse all ancestor directories. Assume ordinary permission checks only, with no additional access rules, special directory restrictions, read-only filesystem, or privileged overrides. Which statements are true? Select all that apply.
Separate file names from file lifetime
On a Unix filesystem, /lab/raw.dat, /lab/keep.dat and /lab/archive.dat are three directory entries identifying the same inode. The file occupies exactly 24 576 bytes of allocated data blocks. One process also holds a single open file descriptor for this file.
These are the only directory entries and open references to the file. No snapshots or other storage-retention mechanisms apply. All operations below succeed, and no data are written.
The following events occur in order: