Find files without a valid owner
find files with nouser nogroup | orphaned files after deleting user | ls shows uid number instead of username | file owner does not exist | find | chown | cleanupfind /var/www -xdev \( -nouser -o -nogroup \) -ls 2>/dev/nullLists files whose UID or GID is no longer assigned to any user or group. In ls -l they show up with a number instead of a name. Typical after deleted Plesk subscriptions or after an rsync from another server with different UIDs.
Note: If a new user is later created with the same UID, these files automatically belong to that user, so clean them up or reassign them.
Also searched as
- find files with nouser nogroup
- orphaned files after deleting user
- ls shows uid number instead of username
- file owner does not exist