search files and directories' owner
My system is centos 5.5, and I need nobody:nobody's directories and files under data.
There is a directory named "data, and this directory has so many directories and files generated by web program. Most of them is nobody:nobody. I want to to make a list of these nobody:nobody directories ans files. Is it possible to make a list of these directories and files? |
Use the find command, there are switches available for -user and -group
Something like "find /data -user nobody" You can also limit the depth if you want. Also, you might find it useful to dump the output to a file using something like: "find /data -user nobody > ~/file-list.txt" so you can look at it later, since it will dump a really long list. |
All times are GMT -5. The time now is 03:45 PM. |