Linux Labs

Users, permissions, and processes / Stage 3 of 13

Changing and diagnosing permissions

Not running Starting usually ~20 s
Leave the lesson

Step 4 of 8 · on a machine · 4 min

Fix the place where access breaks

A denied read is not always fixed by the file's own permissions. In the previous lesson the directory archive closed the path to note.txt.

First find the part of the path where access breaks: namei -l, or ls -ld on each directory. Then change the rights of that part, and only that part. Adding rights to the file is useless when a directory is closed: the check never reaches the file.

Exercise · do it

Get your way back to the note

In /srv/permissions-lab, your cat archive/note.txt is refused. Fix access for yourself: open nothing to the group or others, and leave note.txt's mode and text alone.

Sign in and start The machine is available after signing in

Goals · 0 of 2

  • Get read access to archive/note.txt back not done yet
  • Leave note.txt as it was not done yet

Step goals

0 of 2
  • Get read access to archive/note.txt back — not done yet
  • Leave note.txt as it was — not done yet
Ubuntu 24.04

Step goals

0 of 2
  • Get read access to archive/note.txt back — not done yet
  • Leave note.txt as it was — not done yet
Loading…