On 26/08/2003 4:55 PM +0000, Voytek Eymont wrote:

ahem, how I wrap it in a 'do for' loop

do for i in /home/* ..?

You could add regexp's to this but if you want the Maildirs created for all the dirs in /home then:


for i in `ls /home/`; do
        cd /home/$i
        maildirmake Maildir
        cd ..
        chown -R $i $i
done

(presuming your users are named the same as your directories)

If you don't have the maildirmake utility, you can search google for it or alternatively change that command to create the Maildir/{tmp,new,cur} directories manually.

Gonzalo

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to