#!/bin/sh
#	chog [userid [group]]
#
# chown all the files below the current directory to the specified user/group.
# Note that this must be run as super-user.
#
u=$1
g=$2
if [ $# -lt 1 ];then u=nm; fi
if [ $# -lt 2 ];then g=nm; fi
find . -print | xargs chown $u &
find . -print | xargs chgrp $g &
find . -print | xargs chmod ug+rw &
wait
