I need to ensure that, when deleting a specific user from a system, all of his/her files are removed. User creation/deletion will happen a lot on this system, so I want to reuse UID's and want to ensure the new user does not have access to any files of the old user.
My question is two-fold:
- Is there a general and easy way to find all files owned by a specific user? Or is a system-wide
search -uid nmy only option?
- If a system-wide search is the only option, then which directories are generally writeable by a normal user (suppose a distribution following FHS)?
- His home directory
The user does not have
sudo privileges, so he can only write in places that are world-writable in a standard Unix filesystem.