-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

using bash:
	for file in `ls /var/mail/*.file`
	do
		$owner = `awk -F'.' '{print $1}'`
		chown $owner:$owner $file
	done

~J

I'm sure someone else will do this as a 1 liner in poerl, actually I can
thing of at least 1 way to do it using regex as well


justin at jv.dyns.cx wrote:
> Could someone please help me out and let me know a script or two that will
> change all files eg. /var/mail/user.file so the owner and group are the
> same as the file name.  Hope this is enough info. Thanks
> 
> JV
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> 

- --
Jonathan Kline <klinej at msoe.edu>
Milwaukee School of Engineering
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCjAsAQkF4UQaOvSoRAnq8AKDLmSb/zSGeHBsz59jz4uid+H7YcACgnxi4
mOElbukP6oE5UpYi5Hi8fw4=
=35Pw
-----END PGP SIGNATURE-----