From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,406d1a2465635414 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-09-12 22:51:44 PST From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Newsgroups: comp.unix.tru64 Subject: Re: Post Scriptum - quotactl() Date: 13 Sep 2000 04:26:41 GMT Organization: North Dakota Higher Education Computing Network (NDHECN) Message-ID: <8pmvm1$c6j$1@news.ndsu.nodak.edu> References: <8pd6sh$2hkr$1@ns.felk.cvut.cz> <8pdepa$2mv2$1@ns.felk.cvut.cz> NNTP-Posting-Host: dogbert.cc.ndsu.nodak.edu MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.ndsu.nodak.edu 968819201 12499 134.129.106.23 (13 Sep 2000 04:26:41 GMT) X-Complaints-To: abuse@nodak.edu NNTP-Posting-Date: 13 Sep 2000 04:26:41 GMT X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!newsfeed.direct.ca!look.ca!sunqbc.risq.qc.ca!news.imp.ch!seti.imp.ch!news.planetc.com!leto.backbone.ou.edu!news.nodak.edu!not-for-mail Xref: supernews.google.com comp.unix.tru64:353 In article <8pdepa$2mv2$1@ns.felk.cvut.cz>, Ivan Dolezal wrote: > > Is quotactl() the best way to do it? Yes, it is. > I also experimented with dqb_btime, dqb_itime, but it didn't appear to have > any influence on 'quota' grace time. Does anybody know why? I play with > AdvFS. And, actually, what time units are dqb_*time? Seconds? The units are seconds. We always use a 7 day grace period, i.e. user_quota.dqb_btime = 604800; /* 7 days * 24 hours * 3600 sec */ That seems to work for us -- I haven't tried any other values. Check out the tru64-unix-managers mailing list. Search *way* back for "Richard Jackson". He sent some quota code for setting user quotas on AdvFS to the list years ago. His stuff should do exactly what you need. If you run into problems with it, let me know. I have a similar utility that I wrote years ago for AIX, which I've since ported to Tru64 and Linux, for setting a quota directly from the command line without the need for a quota prototype user. Mine has some site-specific stuff in it for our site, though, so it would probably need some clean-up before I could give it out. 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