Ok, interesting... Thanks! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Xn Nooby Sent: Friday, April 24, 2009 9:53 PM To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list Subject: Re: [rhelv5-list] Re: Cannot set user quotas
I'm actually replacing an existing mail server (home-grown) that already uses the numeric usernames. The usernames function more like department numbers. The actual users will come and go. On Thu, Apr 23, 2009 at 5:29 PM, Collins, Kevin [BEELINE] <[email protected]> wrote: > Not really relevant to the thread, but why on earth would you use > numeric-only values for user names. I imagine it could be quite confusing! > > Kevin > > -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Xn Nooby > Sent: Wednesday, April 22, 2009 9:00 AM > To: [email protected] > Subject: [rhelv5-list] Re: Cannot set user quotas > > I think my problem was that because I am using all-numeric usernames, > setquota was assuming I was giving it a UID. So I used the "-x" option > and now it is working: > > setquota -x 12345 10000 11000 0 0 -a /dev/hda3 > > > > On Wed, Apr 22, 2009 at 9:51 AM, Xn Nooby <[email protected]> wrote: >> edquota show's the quota, but the quota command does not: >> >> [r...@mail ~]# setquota -u 12345 10000 11000 0 0 -a /dev/hda3 >> >> [r...@mail ~]# edquota -u 12345 >> Disk quotas for user 12345 (uid 12345): >> Filesystem blocks soft hard inodes >> soft hard >> /dev/hda3 0 10000 11000 0 >> 0 0 >> ~ >> ~ >> >> [r...@mail ~]# quota -u 12345 >> Disk quotas for user #12345 (uid 12345): none >> >> >> >> >> >> On Wed, Apr 22, 2009 at 9:32 AM, Xn Nooby <[email protected]> wrote: >>> Hello, I am having some trouble getting quota's to work. When I try to >>> set the quota for a user, it does not show up when I run repquota. >>> These are the steps I am following on a RHEL5 machine: >>> >>> (1) I add usrquota to the /etc/fstab file, then reboot >>> >>> LABEL=/home /home ext3 defaults,usrquota 1 2 >>> >>> (2) Verify /home is /dev/hda3 >>> >>> /sbin/tune2fs -l /dev/hda3 | grep volume >>> Filesystem volume name: /home >>> >>> >>> (3) Create the user quota file >>> >>> quotacheck -cmu /home >>> ls -l /home/aquota.user >>> repquota /home >>> >>> >>> [r...@mail ~]# repquota /home >>> *** Report for user quotas on device /dev/hda3 >>> Block grace time: 7days; Inode grace time: 7days >>> Block limits File limits >>> User used soft hard grace used soft hard grace >>> ---------------------------------------------------------------------- >>> root -- 184224 0 0 4 0 0 >>> 12345 -- 208 0 0 49 0 0 >>> 54321 -- 172 0 0 40 0 0 >>> >>> >>> (4) Turn on quotas >>> >>> quoataon /home >>> >>> (5) Add a user quota >>> >>> setquota -u 12345 10000 11000 0 0 -a /dev/hda3 >>> >>> (6) Recalculate the quotas >>> >>> quotaoff /home >>> quotacheck -amu >>> quotaon /home >>> >>> (7) Check if the quotas are active >>> >>> ls -l /home/aquota.user >>> repquota /home >>> >>> >>> [r...@mail ~]# repquota /home >>> *** Report for user quotas on device /dev/hda3 >>> Block grace time: 7days; Inode grace time: 7days >>> Block limits File limits >>> User used soft hard grace used soft hard grace >>> ---------------------------------------------------------------------- >>> root -- 184224 0 0 4 0 0 >>> 12345 -- 208 0 0 49 0 0 >>> 54321 -- 172 0 0 40 0 0 >>> >>> >>> (8) Shouldn't the limits look like this: ??? >>> >>> >>> User used soft hard grace used soft hard grace >>> ---------------------------------------------------------------------- >>> root -- 184224 0 0 4 0 0 >>> 12345 -- 208 10000 11000 49 0 0 >>> 54321 -- 172 0 0 40 0 0 >>> >> > > _______________________________________________ > rhelv5-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rhelv5-list > > _______________________________________________ > rhelv5-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rhelv5-list > _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
