BetaIT Bible Labs is new. Things may change or break while we improve it. Found a problem? Tell us in the community.

IT BIBLE LABS
← All labs
LinuxintermediateAbout 20 minutesTroubleshooting

Troubleshoot: a report will not save

An analyst can open and edit last quarter's report but cannot save a new one in the same folder. Find which of owner, group and mode is wrong, and fix it with the least access that works.

Part of the path Linux server foundations (step 3 of 6), next: Debian networking basics

Part of the path Troubleshooting (step 3 of 7), next: Troubleshoot: the server cannot reach anything outside

The report

From Dana Whitfield, analyst

I cannot save new reports in /srv/reports

I can open last quarter's file in /srv/reports and even edit it, but when I save this quarter's summary as a new file I get "Permission denied". I am in the analysts group, so I do not understand why. Eve, the contractor, should still not be able to put files there.

Impact: The quarter-end report is due today.

What you will do

6 tasks
  1. 1.See the error yourself

    Try to do what Dana is doing, as her: create the file /srv/reports/q4-summary.txt.

  2. 2.Look at the folder

    Permission to create a file depends on the folder it goes in, not on the other files in it.

  3. 3.Check what the person is allowed

    Check which groups Dana is in, so you know whether the group on the folder is the right one.

  4. 4.Make the change

    Make the smallest change that lets the analysts create files in the folder.

  5. 5.Prove it works for Dana

    Create the file as Dana again.

  6. 6.Prove Eve is still kept out

    Fixing a problem should not open a door.