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.
- A service unit file was edited on a systemd host. What must the administrator run so systemd reads the change before restarting the service?
- An administrator wants a cron job that runs a backup script every day at 02:30. Which crontab schedule is correct?
- An administrator needs to see which block devices are attached, with their sizes and mount points, in a tree. Which command does that?
- A new disk partition has been formatted and must be mounted at boot. Which file should the administrator add an entry to?
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.