Interview Prep/Linux/Permissions, ownership, SELinux and mounts

A user gets `-bash: cd: /srv/project: Permission denied` although they're in the group that owns `/srv/project` (mode `770`).

BeginnerTroubleshootingPermissions, ownership, SELinux and mounts
Answer

Likely causes → Their current session was started before they were added to the group, or a parent directory blocks traversal.

Diagnose →

id                         # in their session
id alice                   # from the database
namei -l /srv/project

Fix → Log out and back in (or newgrp devteam). Add x for the group on parent directories if missing.

Prevent → Tell users group changes need a new login; restart services after adding service users to groups.

All Linux questions Roadmap: Linux

More on Permissions, ownership, SELinux and mounts