[arch-general] How to find files owned by some user or group?
Hi, how can I find all the files owned by some user or group (in preparation to delete the user/group)? Kind regards Peter
Hi Peter,
how can I find all the files owned by some user or group (in preparation to delete the user/group)?
find(1). See https://wiki.archlinux.org/index.php/Find#Essentials sudo find /start1 /start2 \( -user foo -o -group bar \) -ls -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy
Am 13.12.18 um 10:28 schrieb Ralph Corderoy:
Hi Peter,
how can I find all the files owned by some user or group (in preparation to delete the user/group)? find(1). See https://wiki.archlinux.org/index.php/Find#Essentials
sudo find /start1 /start2 \( -user foo -o -group bar \) -ls
Thank You! Just thought there might be some easier way, searching for every file and checking its attributes is something like brute force, IMHO, but obviously the only possible solution ... Kind regards Peter
participants (2)
-
Peter Nabbefeld
-
Ralph Corderoy