Skip to content

Linux+ XK0-006 practice question 5: Services and users

A file must be readable and writable by its owner, readable by the group and inaccessible to everyone else. Which mode does that?

The options

  • A. 604
  • B. 460
  • C. 640
  • D. 755

Answer and why

The correct answer is C: 640

A. This gives the group nothing and lets others read.

B. This makes the owner read-only, which does not match the request.

C. 6 is read and write for the owner, 4 is read for the group, and 0 gives others nothing.

D. This lets everyone read and execute, and the group cannot write, so it does not match the request.

What Services and users tests

Services and user management covers systemd units, scheduling, containers, accounts, groups and permissions. Read whether the question is about a unit file, a user record or a file mode before you read the options.

Services and user management is 20% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.

Try these next

Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.

Keep going

This is question 5 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.