Try this:
#!/bin/bash
unalias ls
for i in `ls /home/vpopmail/domains` ; do
for x in `awk -F: '{ print $1 }' /home/vpopmail/domains/$i/vpasswd` ; do
echo -n "setting quota for $x@$i at 5M ... "
/home/vpopmail/bin/vsetuserquota $x@$i 5M
echo "done."
done
done
on 1/17/01 1:39 PM, Russell "Elik" Rademacher at [EMAIL PROTECTED] wrote:
> I would really appreciate if someone with good scripting knowledge submit
> the script to do the mass domains/users accounts of their quota so that they
> can be set accordly.
>
> Seems I goofed up and set nearly 20 to 70 sites with 5K of quota usage and
> I need to recifiy that soon with 5 Meg Quota usage instead. There is about
> oh...500 accounts or so.
>
> ----------------------------------------------
> Linux Administrator & Consultant
> Russell "Elik" Rademacher
>
>