mywindowsdownloads.blogspot.com
Click here for all Free Linux Downloads
Configuring Disk Quota: .....continued
We will have to follow these steps to implement disk quotas for specific user:
- Change /etc/fstab file to enable quotas for the file system of our choice.
- Remount file system to enable changes
- 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
- Create base quota file with the help of quotacheck command, after scanning the appropriate file system.
- With edquota, apply quota limits for specific user.
- 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