Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: How to allocate quota per user
Date: 1998/02/21	[thread overview]
Message-ID: <6cnlpa$9f1@dogbert.cc.ndsu.NoDak.edu> (raw)
In-Reply-To: 34ED8540.41C6@is.digital.co.kr


In article <34ED8540.41C6@is.digital.co.kr>,
yongjoonchoi  <yongjoonchoi@is.digital.co.kr> wrote:
> In advfs or ufs, how to allocate quota per user(total 20,000) using
> shell script?

You could do any of these things:

1) Set up some quota prototype users with your standard quota(s), then
use

	edquota -p prototypeuser realuser

to apply prototypeuser's quota to realuser.

2) Write a program that uses the quotactl() call to set someone's quota.
It works for both advfs and ufs, even if your manpage says differently
(and it may).


#1 works pretty well if you only have a handful of default quota
configurations.  #2 works better in general, especially if you have a lot
of users that have odd quotas.

If you check the alpha-osf-managers mailing list archive, you'll find a
program in there by Richard Jackson that does what you need, if you decide
to choose option #2.

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



      reply	other threads:[~1998-02-21  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-20  5:00 How to allocate quota per user yongjoonchoi
1998-02-21  5:00 ` Tim Mooney [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox