|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
List all files owned by a user
I think this is Linux and not Apache...
Does any one know of a piped command string that would list all files associated with or owned by a certain user ( eg. web, admin etc.) and send the lot to a file. (eg. admin.txt) I saw such a command somewhere before but cannot find it |
|
#2
|
|||
|
|||
|
find / -user root > admin.txt
|
|
#3
|
|||
|
|||
|
Thanks M. Hirsch
I got the find command. I used find /usr/local -user admin > /usr/local/home/admin.txt 2>/dev/null |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > List all files owned by a user |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|