Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Disk Quotas
6 April 2004 @ 20:12 BST
by Nomad

A usenet poster suggeted the following procedure to manage disk space quotas for your users:

  1. Log in as root
  2. cd to the base directory for the partition you want the quotas on (you must do this on each partition you want the quotas applied to)
  3. use touch command to create files "quota.user" "quota.group"
  4. edit the file /etc/fstab (remember to make a backup copy of it). For example:
       /dev/hda1 /home ext3 defaults,usrquota,grpquota 1 3
       ( replace hda1 above with your partitions)
    
  5. reboot (or umount and mount the disk)
  6. quotacheck -c /home
  7. use edquota -u user (for a user) or edquota -u group (for a group)
  8. quotaon /home
Tags: disk files



Leave a comment:

Are you human?