SUMMARY: chown script

From: Mike's List <mikelist_at_sky.net>
Date: Tue May 14 2002 - 20:32:53 EDT
The below did the job (ie. where user1 owns /var/mail/user1 file)

for i in *; do chown $i $i; done

Thanks.


- Mike


On Tue, 14 May 2002, Mike's List wrote:

> Anyone has a basic script to change user's permission or know if it's in
> the archive...
> 
> ie. chown user1 user1 (w/out changing the . and ..)
>     chown user2 user2 ...and so on, I guess something like for $1=user
>     chown $1 $1 or something...
> 
> 
> Thanks.
> 
> 
> - Mike
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue May 14 20:38:26 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:43 EST