File permissions, ownership and disk quotas
Lesson 5 of 7 in objective 104. Devices, Linux filesystems, filesystem hierarchy standard, part of LPIC-1 Exam 101-500.
- Objective
- 104. Devices, Linux filesystems, filesystem hierarchy standard
- Share of the exam
- 25% (the whole objective)
- Questions in this lesson
- 7
- Signed for by a person
- 0
Partly checked. None of the 7 questions here has been read against the cited source by a person. 7 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.
Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.
Questions in this lesson
- A script must be readable and executable by everyone but writable only by its owner. Which octal mode does that? machine-checked
- A user's shell has umask 022. With no other mechanism involved, what permissions does a regular file created by that shell's redirection get? machine-checked
- `ls -l /usr/bin/passwd` shows `-rwsr-xr-x 1 root root`. What does the s in the owner's execute position mean? machine-checked
- /tmp is shown by ls -ld as `drwxrwxrwt`. What does the trailing t achieve on this world-writable directory? machine-checked
- Which command sets both the owner and the group of report.txt to alice and staff in a single invocation? machine-checked
- Select the THREE true statements about the special permission bits on Linux. machine-checked
- You want every regular file a shell creates to come out as rw-r----- (640) and every new directory as rwxr-x--- (750). Type the complete command that sets that default. machine-checked
Drill this lesson
A lesson is one sitting: the trainer draws a short run from these questions alone and spaces the ones you get wrong.
Practise File permissions, ownership and disk quotas
The rest of objective 104
- Partitions and filesystems
- Keeping filesystems intact
- Mounting and unmounting filesystems
- Disk quotas
- File permissions, ownership and disk quotas — you are here
- Hard links and symbolic links
- Finding files and where they belong