>For your example, I think this will work for you
>       grep /home/ /home/scott/homedirpass \
>               | awk -F: '{ print $1 " " $4; }' \
>               | while read pwuser pwgid ; do \
>                       [ -d ~$pwuser ] || ( chown -R $pwuser.$pwgid
~$pwuser ) \
>                 done

Dan-

I was able to get it working, thank you!  I had to add a /home in front
of
$pwuser after the chown!

Thanks again.

-Scott



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to