Index: [Article Count Order] [Thread]

Date:  Wed, 24 Dec 2008 07:26:24 -0600
From:  Chris Gebhardt - VIRTBIZ Internet <cobaltfacts (at mark) virtbiz.com>
Subject:  [coba-e:14539] Re: Change quota on multiple users
To:  coba-e (at mark) bluequartz.org
Message-Id:  <49523880.9040909 (at mark) virtbiz.com>
In-Reply-To:  <200812240826.58814.bq (at mark) solarspeed.net>
References:  <495151C4.9060506 (at mark) virtbiz.com> <200812240246.17862.bq (at mark) solarspeed.net> <4951BA74.6040200 (at mark) virtbiz.com> <200812240826.58814.bq (at mark) solarspeed.net>
X-Mail-Count: 14539


Michael Stauber wrote:
> ---------------------------------------------------------------------------------------
> #!/usr/bin/perl 
> 
> # Desired Quota in MB:
> $size = 100;
> open( UFILE, "/root/userlist.txt") || die "Cannot open /root/userlist.txt";
> while ( <UFILE>) {
>         chop;
>         ($user) = split /\//;
>         print "Setting quota for " .  $user . " to " . $size . " MB. \n";
>         system ("/usr/sbin/cmoduser --name $user --set-quota $size");
> }
> close (UFILE);
> ---------------------------------------------------------------------------------------
> 
> Hmyeah ... it was missing the ";" at the end of line 4.
> 

Yes, that worked!
What a great way to instantly give 155 users a 2500MB disk quota.

With the increase in IMAP adoption, and drives so cheap, BQ's 20MB 
standard quota just seems laughable these days.

Thanks again!

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ