[CentOS] simple script idea

Garrick Staples garrick at usc.edu
Sun Jan 20 06:29:21 UTC 2008


On Sat, Jan 19, 2008 at 10:21:48PM -0800, Robert - elists alleged:
> Anyways, would some kind soul point me in the right direction or help me
> create a script that will traverse the proper parts of the filesystem and
> grep for files with UID and/or GID 46 please?

find / \( -uid 46 -o -gid 46 \) -print0 | xargs -0 chown clamav:clamav

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080119/016c55d8/attachment.sig>


More information about the CentOS mailing list