From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cc3bb2de103fc3f0 X-Google-Attributes: gidfee84,public From: tiok_sr@tampere.fi (Seppo Routimo) Subject: Re: setquota Date: 1997/10/09 Message-ID: <1997Oct9.142931.3566@manse9>#1/1 X-Deja-AN: 278954523 References: <612dpd$mpa@cantine.wu-wien.ac.at> <343C83B7.A464D936@kudonet.com> Organization: City of Tampere, Finland Newsgroups: comp.unix.osf.osf1 In article <343C83B7.A464D936@kudonet.com>, Patrick Mendoza writes: > PC7 root user wrote: > >> Is there an easy way to set user quota from the shell >> or from a C or Perl program? Something like setquota(users, MB)? >> Any hints greatly appreciated* >> >> Regards from Vienna >> Johann Mitloehner >> mitloehn@wu-wien.ac.at >> http://www.wu-wien.ac.at/usr/ai/mitloehn > >> > As root: > > # cp /dev/null /home/quotas > # chmod 600 /home/quotas > # chown root /home/quotas > > Editing users' quotas individually: > > #edquota (user) > > The -p option to set quotas for multiple users: > > #edquota -p (user) (user) (user) > > Hope this helps. :-) > > -Patrick > > http://home.kudonet.com/~jvc411/welcome.html > Hi For some strange reason our quota,edquota etc. don't show anything. Instead I use vquota, vedquota... Anyway here's how I did it. (If it is of any use to you) - First vedquota xxx as a proto-user - Then cd to the directory where all our users' home-directories are. Just tried vedquota -pxxx -u * (our usernames and home-directory names are the same) and it really copied the proto quotas to the usernames. SR