This one is not as smart as heartig's, but what about
:
Code:
cd /home
for nfile in *
do
if [ -d $nfile ] && [ -e /home/$nfile/.procmailrc ]
then
chown $nfile:10000 /home/$nfile/.procmailrc
fi
done
Obviously you have to run it as root.
This changes the .procmail rc to the user as owner. If you want to change to owner 'pma' change the
chown $nfile ...
to
chown pma ...
This was not quite clear to me.
jlinkels