On Wed, Feb 18, 2004 at 02:15:36AM +0100, Javier Fernández-Sanguino Peña wrote:
DIR_TO_FIX=/home/groupX GROUP=mygroup PERM=g+rwXfind $DIR_TO_FIX -type f -o -type d | xargs chown $GROUP # or chown -hR $GROUP $DIR_TO_FIXfind $DIR_TO_FIX -type f -o -type d | xargs chmod $PERM # or chmod -hR $PERM $DIR_TO_FIX
This is a security nightmare. I would *not* recommend doing any such thing in a user filesystem. Mike Stone