CompTIA Linux+ XK0-006 (V8) Practice Question

A team shares the directory /srv/devshare on a multi-user Linux server. Every user should be able to create or modify their own files there, but no user should be able to delete or rename files that belong to someone else. The administrators do not want to use ACLs, and they are not worried about group inheritance for new files. Which single change to the directory best meets these requirements?

  • Mark the directory append-only using chattr +a /srv/devshare

  • Set the sticky bit on /srv/devshare (chmod +t /srv/devshare)

  • Remove group write permission with chmod g-w /srv/devshare

  • Set the setgid bit on /srv/devshare (chmod g+s /srv/devshare)

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot