Index: [Article Count Order] [Thread]

Date:  Fri, 14 Dec 2007 18:42:57 +0100
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:11460] Re: cced documentation/ -howto available?
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200712141842.57229.bq (at mark) solarspeed.net>
In-Reply-To:  <01E188343A33DE4E8B1A00D7980BC87901CAEDC8 (at mark) s2.combox.de>
References:  <01E188343A33DE4E8B1A00D7980BC87901CAEDC8 (at mark) s2.combox.de>
X-Mail-Count: 11460

Hi Tobias,

> Is there a documentation or howto for the cced available?

http://bluequartz.org/docs/publish.html
http://data.smd.net/cobalt.docs/

> My actual problem is: I have to change the quota for 108 users at a time
> (all to the same size). Of course I can do this for the quota system but
> the cced has to be updated as well. I'm sure, there is a way to do this
> per command line. But as stated above "I am this helpless..."

You don't need "play" directly with CCEd or the Linux disk quota to solve the 
particular problem at hand. BlueQuartz has a package that's 
called "5100R-shell-tools" which allows you to create, delete and manipulate 
users and sites from the command line. It may or may not be installed on your 
server already - depending on how you installed BlueQuartz.

However, you can install it through YUM:

	yum install 5100R-shell-tools

That will install the following shell tools, which you can call directly:

/usr/sbin/cadduser
/usr/sbin/caddvsite
/usr/sbin/cdeluser
/usr/sbin/cdelvsite
/usr/sbin/clistuser
/usr/sbin/clistvsite
/usr/sbin/cmoduser
/usr/sbin/cmodvsite

Run them with the "-h" switch to see the available switches and options and 
the explanation of what they do.

So if you want to change the disk quota of 108 users, simply write a small 
script that calls /usr/sbin/cmoduser with the respective switches 
(like --name for the username and --quota with the new disk quota) for every 
user.

-- 
With best regards,

Michael Stauber