Set file and directory permissions

Set file and directory permissions in Linux — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
I need these project folders and deploy scripts locked down before the release. Set ownership so…
I need these project folders and deploy scripts locked down before the release. Set ownership so that deploy@infra is the owner of /srv/project and /srv/project/shared, make the group devs for both, give owner rwx, group rwx on directories, owner rw and group r on files, ensure the sticky bit on /srv/project/shared so uploads by devs stay theirs, and verify with a recursive listing before and after. Deadline: Thursday noon.

Improve — make it easier to accept

+
Before I hand this to the audit team, make it obvious what changed and why. Put the effective…
Before I hand this to the audit team, make it obvious what changed and why. Put the effective permissions for /srv/project and /srv/project/shared at the top, call out any files that will lose write access for a user in group ops, list commands you will run and the single line that reverses each change, and flag any world-writable files that remain.

Decide — diagnose the stuck moment

+
I just set permissions recursively on /srv/project to tighten security; the CI pipeline that writes…

I ran chmod -R and now some CI jobs fail to write.

I just set permissions recursively on /srv/project to tighten security; the CI pipeline that writes build artifacts to /srv/project/shared started failing. The deploy owner should have access and devs must be able to upload, but I’m not sure which files CI needs to write or whether ACLs were in place. What likely permission or ownership mistake did I make, how do I check the minimal fix without reverting everything, and what single commands restore CI write access safely so I can test?

Become — change the pattern

+
Every release I end up doing a permission sweep because services or CI lose write access; it costs…

Re-setting permissions after deployments keeps breaking services.

Every release I end up doing a permission sweep because services or CI lose write access; it costs hours and risks outages. I want a repeatable habit so deploys don’t morph ownership or break writers. Where am I most likely going wrong — umask, deploy user, group membership, or mixing chmod and ACLs — and what two changes should I make to stop this cycle permanently?

Next to this one

Other operating system work people do in Linux.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.