From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6e86346b98c7cb87 X-Google-Attributes: gidfee84,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: How to allocate quota per user Date: 1998/02/21 Message-ID: <6cnlpa$9f1@dogbert.cc.ndsu.NoDak.edu>#1/1 X-Deja-AN: 327372191 References: <34ED8540.41C6@is.digital.co.kr> Organization: North Dakota Higher Education Computing Network (NDHECN) Newsgroups: comp.unix.osf.osf1 In article <34ED8540.41C6@is.digital.co.kr>, yongjoonchoi 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