4.4 Given a scenario, analyze and troubleshoot user access and file permissions.
Objective 4.4 sits in Troubleshooting, which carries 28% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.
Objective title verbatim from the official objectives. CompTIA exam page ↗
A worked example
Shown solved, with the whole explanation open: this is what every question here carries.
$ ls -l report.txt
-rw-r----- 1 alice finance 812 report.txtbob is not alice and not in the finance group. What access does bob have to this file?
Correct.
Concept
The three permission triads apply to owner, then group, then others, and a user who is neither the owner nor in the group falls under the others bits.
Why D
The others field is ---, so bob, being neither alice nor in finance, has no access to the file.
Now you: objective 4.4 questions
No account needed. The explanation opens when you answer.
Sample question 1 of 3
A user can see a file's path but gets 'Permission denied' running cd into its parent directory. Which permission is missing on that directory?
Sample question 2 of 3
An administrator must set report.txt so the owner can read and write, the group can only read, and others get nothing. Which chmod does that?
Sample question 3 of 3
$ ls -l data.csv
-rw-r----- 1 root analysts 40 data.csv
$ id
uid=1007(sam) groups=1007(sam),1500(analysts)Why does sam get 'Permission denied' writing to data.csv?
Full Linux+ question bank coming
We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.
Read the sources
These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.
More objectives in Troubleshooting
- 4.1 4.1 Given a scenario, analyze and troubleshoot storage issues.
- 4.2 4.2 Given a scenario, analyze and troubleshoot network resource issues.
- 4.3 4.3 Given a scenario, analyze and troubleshoot central processing unit (CPU) and memory issues.
- 4.5 4.5 Given a scenario, use systemd to diagnose and resolve common problems with a Linux system.