Linux Labs

Users, permissions, and processes / Stage 4 of 13 · step 6 of 7

The team's shared directory

medium ~25 min
Not running Starting usually ~20 s
Report a problem

Situation

The devs team, alice and bob, works in the /srv/team directory:

  • /srv/team/docs holds documents the team edits together;
  • /srv/team/reports holds reports: everyone drops their own there.

This week's complaints. bob: "I can't append to alice's plan.md: Permission denied. And I can't create my own document in docs." alice: "My report disappeared from reports: bob deleted it while sorting his own. And nobody but me can edit my new documents."

You don't need alice's or bob's passwords: sudo -u runs commands on their behalf, and sudo -iu runs them the way their login does.

Task

  1. New files by alice and bob in /srv/team/docs get the devs group.
  2. bob can append to a new document that alice creates after logging in.
  3. bob can append to /srv/team/docs/plan.md, and alice stays the file's owner.
  4. bob cannot delete or rename alice's report in /srv/team/reports.
  5. alice and bob can put their own reports into /srv/team/reports, and new reports get the devs group.
  6. Others outside devs get no write access: not to docs or reports, not to plan.md, and not to alice's new files.

The machine has no internet access; everything you need is already installed.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 6
  • New files by alice and bob in /srv/team/docs get the devs group — not checked yet
  • bob can append to a new document alice created after logging in — not checked yet
  • bob can append to /srv/team/docs/plan.md, and alice still owns it — not checked yet
  • bob cannot delete or rename alice's report in /srv/team/reports — not checked yet
  • alice and bob can put reports into /srv/team/reports, and new reports get the devs group — not checked yet
  • Others cannot write to docs, reports, plan.md, or alice's new files — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…