Users and numeric identity
Linux uses numeric user IDs to associate processes and file ownership with accounts. Usernames are human-readable mappings to those numbers. id prints the current UID, primary GID and supplementary groups; whoami prints the effective username. A process can run under a different effective identity from the login account. Compare id, whoami and stat -c "%U %u" private.txt to connect process identity with file ownership in a normal-user terminal. Numeric identity explains ownership across services and mounted filesystems and helps distinguish an account-name mismatch from a genuine authorization failure when diagnosing access. Renaming a username does not make every numeric ownership association disappear; inspect UID values rather than assuming names alone control access to files.
Compare id, whoami and stat -c "%U %u" private.txt to connect process identity with file ownership in a normal-user terminal.
Numeric identity explains ownership across services and mounted filesystems and helps distinguish an account-name mismatch from a genuine authorization failure when diagnosing access.
Renaming a username does not make every numeric ownership association disappear; inspect UID values rather than assuming names alone control access to files.