Objective 2.5XK0-005

2.5 Given a scenario, apply the appropriate access controls.

Objective 2.5 sits in Security, which carries 21% 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.

2-5SecurityModerate

In the four-digit mode 4755, what does the leading 4 set?

The set-user-ID bit on executionCorrect · your answerCorrect. Four in the leading digit is set-user-ID.
The set-group-ID bit on executionSet-group-ID is 2 in that digit.
The restricted deletion flag bitThe restricted deletion flag is 1 in that digit.
Read permission for the file ownerOwner read is the 4 in the second digit, not the first.

Correct.

Concept

The optional leading digit encodes the three special bits, each with its own value, ahead of the familiar owner, group and other digits.

Why A

The first digit combines set user ID at 4, set group ID at 2 and the sticky or restricted deletion attribute at 1, so a leading 4 sets set-user-ID.

#permissions#chmod

Now you: objective 2.5 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 2

2-5SecurityModerate

Users keep deleting each other's files in a world-writable shared directory. Which single bit stops that while leaving the directory writable?

Sample question 2 of 2

2-5SecurityHard

A script recursively applies numeric modes to a tree, and set-group-ID directories keep their bit even though the digits did not include it. Why?

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 Security