Monday, March 8, 2010

Configuring Disk Quota: ...contd

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi

Configuring Disk Quota: .....continued

We will have to follow these steps to implement disk quotas for specific user:


  1. Change /etc/fstab file to enable quotas for the file system of our choice.
  2. Remount file system to enable changes
  3. Create quota database file (aquota.user) on the top of subjected file system, e.g. if we are creating quota on /home, create /home/aquota.user
  4. Create base quota file with the help of quotacheck command, after scanning the appropriate file system.
  5. With edquota, apply quota limits for specific user.
  6. Lastly, with edquota command, activate the quota.


Changing /etc/fstab


Edit /etc/fstab file using vi editor, and add any of the following like lines:


/dev/vol_gr0/log_vol1 /home ext3 defaults,usrquota,grpquota 1 2


Or


LABEL=/home /home ext3 defaults,usrquota 1 2


In the first example, /home file system has both user and group quotas enabled, while second example enables quota on user only.


No comments:

Post a Comment