This seems to be one way of do it...

What happens when you want to add more users?

Wouldn't it be easier to add a quota the file system?

Better yet... how about group quota?

Perhaps we should upgrade the quota rpm... currently I think it is 
2.x-pre...?

[EMAIL PROTECTED] wrote:

> On this topic...
> 
> I wanted the same quota to be applied to all users. So I ran the following 
> script which gave me a list of all users (minus those that I didn't want to be 
> a part of this list, eg "admin" as per what follows), in the file 'userlist'.:
> ---
> ls -l /home/e-smith/files/users/ > users
> rm -f userlist
> for record in `awk '($3 == $9) && ($9 != "admin") {print $9}' users`
>    do
>    echo $record >> userlist
> done
> rm -f users
> ---
> 
> I then set one user's quota (to use Darrell's eg, bob) to what I wanted.
> 
> Then, using & changing part of Darrell May's quotas howto (this was before 
> quotas were implemented on the web-panel, in 5.0), I simply replicated bob's 
> quota to all others. It seems to work.
> ----
> Darrell's:
> ----
> HowTo implement Quota management 
> Contributor:  Darrell May
> 5.3 Assigning quota for a bunch of users with the same value 
> To rapidly set quotas for, say 100 users, on my system to the same value as my 
> user bob, I would first edit bob's quota information by hand, then
> execute: 
> /usr/sbin/edquota -p bob `awk -F: '$3 > 499 {print $1}' /etc/passwd`
> assuming that you are using csh, and that you assign your user UID's starting 
> with 500. 
> ----
> 
> -----
> Mine:
> -----
> /usr/sbin/equota -p bob `cat userlist`
> -----
> 
> Does anyone see any problems with my method? Is there some further e-smith event 
> that I should be triggering also? The quotas show up fine in the webpanels 
> immediately after I've run this.
> 
> Cheers,
> Greg.
> 
> 
> Quoting Brandon Friedman <[EMAIL PROTECTED]>:
> 
> 
>>Some feedback...
>>
>>Examined both files.... my perl need a little sprucing up but what I can
>>
>>tell...
>>
>>When you add a quota to user, it updates the accounts file and adds 
>>Maxsoft and Maxlimit into the account entry?
>>
>>I that all we need todo? Which event adds it user-modify?
>>
>>We are batch adding a couple hundred users, can we simply add call this
>>
>>event at adding time and specify a default quota.
>>
>>This is the exactly what we want. We would like to set a "hard" quota on
>>
>>the filesystem not on the user accounts
>>
>>Gordon Rowell wrote:
>>
>>
>>>On Sat, Apr 13, 2002 at 01:12:56PM +0200, Brandon Friedman
>>>
>><[EMAIL PROTECTED]> wrote:
>>
>>>>Hello Folks
>>>>
>>>>I am looking to try implement default user quotas for all users..
>>>>I read up about it but it mentions using linuxconf to setup the
>>>>
>>default 
>>
>>>>quotas. SME doesn't have linuxconf - right?
>>>>
>>>>
>>>Correct - linuxconf also expects to own the configuration files.
>>>
>>>
>>>
>>>>Anybody got any ideas?
>>>>
>>>>
>>>- Have a look user-modify-quota and the quota web panel
>>>- set the appropriate properties for all users
>>>- call signal-event user-modify for each user
>>>- share your code
>>>
>>>Gordon
>>>--
>>> Gordon Rowell                         [EMAIL PROTECTED]
>>> Director, Engineering
>>> Network Server Solutions Group        http://www.e-smith.com/
>>> Mitel Networks Corporation            http://www.mitel.com/
>>>
>>>
>>>--
>>>Please report bugs to [EMAIL PROTECTED]
>>>Please mail [EMAIL PROTECTED] (only) to discuss security issues
>>>Support for registered customers and partners to [EMAIL PROTECTED]
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>Archives by mail and
>>>
>>http://www.mail-archive.com/devinfo%40lists.e-smith.org
>>
>>>
>>
>>-- 
>>
>>Regards
>>Brandon Friedman
>>Cell:083 408 7840
>>E-mail: [EMAIL PROTECTED]
>>www.bfconsult.co.za
>>
>>
>>--
>>Please report bugs to [EMAIL PROTECTED]
>>Please mail [EMAIL PROTECTED] (only) to discuss security issues
>>Support for registered customers and partners to [EMAIL PROTECTED]
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>Archives by mail and
>>http://www.mail-archive.com/devinfo%40lists.e-smith.org
>>
>>
>>
> 
> 
> 
>  - ---- -----
> Greg Orange                  [EMAIL PROTECTED]
> IT Support
> Carey Baptist College        http://www.carey.wa.edu.au
> 
> --
> Please report bugs to [EMAIL PROTECTED]
> Please mail [EMAIL PROTECTED] (only) to discuss security issues
> Support for registered customers and partners to [EMAIL PROTECTED]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org
> 
> 


-- 

Regards
Brandon Friedman
Cell:083 408 7840
E-mail: [EMAIL PROTECTED]
www.bfconsult.co.za


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to