We help IT Professionals succeed at work.

Quota Set up in Centos 4.3

turiyain
turiyain asked
on
1,168 Views
Last Modified: 2013-12-15
Hello Experts,

I want to set up quota on my / (/dev/hda3) for existing users and groups. What will will be the content of my /etc/fstab. And how can i check & set up quota for user mack and group mack.

Thanks in advance

Vijay Thakur
Chandigarh
Comment
Watch Question

Top Expert 2005

Commented:
example fstab entry
/dev/sdb1                /home                   ext3    usrquota,nodev,nosuid 2 2

reboot into sinlge mode(runlevel 1), then create initial quota files (possibly system can do it automatically)
quotacheck -vugcm -F vfsv0 /home
turiyainSystem Administrator

Author

Commented:
Thankyou for prompt reply. As i mention that i have one mounted partion is - / (/dev/hda3) so in that case i will write the same words in my /etc/fstab as you mentioned.  To create quota user and group, it is necessary to reboot the system in single user mode or any command to to create these files in su. You are requested to mentioned in steps after steps.

Top Expert 2005

Commented:
first replace the fstab options to usrquota,grpquota
reboot, should create quota files automatically. however if not, then go to single mode (it's importand, so files will not be changed during quotacheck).
run the
quotacheck -vugcm -F vfsv0 /
quotaon -a
turiyainSystem Administrator

Author

Commented:
Any web link with your guidance.
turiyainSystem Administrator

Author

Commented:
First line of my fstab will look like this :

lebel=/            /  ext3  defaults,usrquota,grpqupta 1 2
Am i right.
Top Expert 2005
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
turiyainSystem Administrator

Author

Commented:
what is the meaning of last 1 2 in fstab entry.
turiyainSystem Administrator

Author

Commented:
Blaa blaha.. I have done with a few key strokes in my /etc/fstab as told by you.  Hope to receive best answers in future from your side.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.