Finding user files from deleted users or no users

Subject:

“Before you delete the user, you may want to run a find command to find all files that would be left behind by the user. After you delete the user, you could search on user ID to find files left behind. Here are two find commands to do those things:# find / -user chris -ls# find / -uid 504 -lsBecause files that are not assigned to any username are considered to be a security risk, it is a good idea to find those files and assign them to a real user account. Here's an example of a find command that finds all files in the filesystem that are not associated with any user (the files are listed by UID):# find / -nouser -ls”

Excerpt From: Negus, Christopher. “Nineth Edition.” iBooks. This material may be protected by copyright.

2018-09-25 14:51:23gstlouis

“Before you delete the user, you may want to run a find command to find all files that would be left behind by the user. After you delete the user, you could search on user ID to find files left behind. Here are two find commands to do those things:
# find / -user chris -ls
# find / -uid 504 -ls
Because files that are not assigned to any username are considered to be a security risk, it is a good idea to find those files and assign them to a real user account. Here's an example of a find command that finds all files in the filesystem that are not associated with any user (the files are listed by UID):
# find / -nouser -ls”

 

gstlouis
vote
2018-09-25 14:51:56