Users, permissions, and processes / Stage 4 of 13 · step 6 of 7
The team's shared directory
Not running
Starting
Situation
The devs team, alice and bob, works in the /srv/team directory:
/srv/team/docsholds documents the team edits together;/srv/team/reportsholds 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
- New files by alice and bob in
/srv/team/docsget the devs group. - bob can append to a new document that alice creates after logging in.
- bob can append to
/srv/team/docs/plan.md, and alice stays the file's owner. - bob cannot delete or rename alice's report in
/srv/team/reports. - alice and bob can put their own reports into
/srv/team/reports, and new reports get the devs group. - Others outside devs get no write access: not to
docsorreports, not toplan.md, and not to alice's new files.
The machine has no internet access; everything you need is already installed.
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