rm user:group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I want to remove files but only if they are owned by a certain user and group.

Basically I have this:

find /var/spool/greylist -mmin +363 -exec rm -f {} \;

I want to make sure it only deletes files owned by mail.  Basically no
matter what weird characters are in the file names I want to make sure
it does not delete anything outside of /var/spool/greylist.  I can add
'sudo -u' to it but then my secure log gets filled with entries but
perhaps thats the only way to do it.

Matt
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux