On Tue, Jan 25, 2000 at 06:31:40AM -0500, rpjday wrote:
> 
> > You can enable quota's through linuxconf.
> 
> i know, but being the inordinately curious type that i am,
> i also like to know how to do it on the command line.  no
> surprise, but sometimes linuxconf doesn't do what it's supposed
> to, and i always want a plan B.
> 
> if ever i figure out quotas in their entirety, y'all will be
> the second to know. :-)

1) make sure quota RPM is installed
2) edit /etc/fstab and change the partition where you want quotas, eg:

/dev/sdb5       /home/users     ext2     defaults,usrquota 1 2

        change to:

/dev/sdb5       /home/users     ext2     defaults,usrquota 1 2

        (this will give you per-user quotas)

3) touch /home/users/quota.user
   touch /home/users/quota.group
4) chmod 600 /home/users/quota.*
5) reboot
OR
5) remount /home/users
6)  /sbin/quotacheck -v -R -a

Then you can edquota to your hearts content.

As you can see this is pretty close to the Quota mini-howto, but the devil
is in the details. If you make a wrong move in startup scripts you'll end
with system you have to rescue (RedHat has already pre-modified their
startup scripts so all you have to do is setup the quota on the filesystems).

[EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to