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

A file shows as owned by a numeric UID like `1003` instead of a username.

BeginnerTroubleshootingPermissions, ownership, SELinux and mounts
Answer

Likely causes → The user was deleted, the files came from another system with a different UID mapping, or the identity service (SSSD/LDAP) is unreachable.

Diagnose →

getent passwd 1003
systemctl status sssd

Fix → Restore the identity service, recreate the user with that UID, or chown to the correct current user.

Prevent → Use userdel with a file-ownership cleanup step; keep UIDs consistent across hosts.

All Linux questions Roadmap: Linux

More on Permissions, ownership, SELinux and mounts