cron script to set proper gid in a user's home directory

view full story

http://forums.opensuse.org – I need a cron script to run every hour or so to go through a user's (called "grb") home directory (which other users work from) and reset all the gid (called "rg") to the user ( "grb"). Can I loop over other user's gid and do something like gid=riv uid=eme find /home/grb -group ${gid} -print | xargs chown ${uid}:rg gid=... uid=... . . . Or does anyone have a script like this already and is willing to share it? (Distributions)