Do you know a command to list all files on the server with specific group and user name?
I am looking for something like this:
find -ls -group 'groupname' && find -ls -user 'username'
this has to list the file with that specific group and user name.
Best Answer
find
can accept multiple test primitives to determine which files (or directories, etc.) are selected for further processing byfind
. The command:find / -user username
will list all files owned by user
username
. Likewise,find / -group groupname
Will list all entries that are owned by group
groupname
. If both tests are given on thefind
command line, the default operation is to "and" them:find / -user username -group groupname -ls