Actions
Feature #794
closed
DC
DC
Finding Files Owned By a User or Group on Linux
Feature #794:
Finding Files Owned By a User or Group on Linux
Description
I recently needed to track down every file owned by a user on a Linux machine. Fortunately the find command already has a parameter to limit matches to a user or group.
This works on Linux, BSD, and OSX.
- Find all files in the root directory owned by the www-data user:
find / -user www-data
- Find all
.phpfiles in the www-data group in the/usr/local/wwwdirectory:find /usr/local/www -group www-data -name "*.php"
Resources¶
Actions