Objective 4.4XK0-005

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.

4-4TroubleshootingModerate
$ ls -l report.txt
-rw-r----- 1 alice finance 812 report.txt

bob is not alice and not in the finance group. What access does bob have to this file?

Read onlyRead applies to the group finance, not to an outside user like bob.
Read and writerw- is the owner's access, and bob is not the owner.
ExecuteNo execute bit is set for any class here.
NoneCorrect · your answerCorrect: the others triad --- grants bob nothing.

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.

#troubleshooting#permissions#ls

Now you: objective 4.4 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

4-4TroubleshootingHard

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

4-4TroubleshootingModerate

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

4-4TroubleshootingHard
$ 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