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

`chmod` on a file under `/mnt/usb` returns success but the permissions don't change.

BeginnerTroubleshootingPermissions, ownership, SELinux and mounts
Answer

Likely causes → The filesystem (FAT/exFAT/NTFS) doesn't store Unix permissions; they come from mount options.

Diagnose →

findmnt -no FSTYPE,OPTIONS /mnt/usb

Fix → Remount with the desired owner and mask: mount -o uid=1000,gid=1000,umask=022 /dev/sdb1 /mnt/usb.

Prevent → Use ext4/XFS for anything needing Unix permissions.

All Linux questions Roadmap: Linux

More on Permissions, ownership, SELinux and mounts