Powered By Blogger

Thursday, 4 July 2013

Quota Implement

QUOTA


The quota system allow an administrator to establish limits on the amount of disk resource users consume.
Quota implement on user and group.

Example implement quota for /home

Open /etc/fstab
Hear edit  near /home  defaults,usrquota
After that save the file
              #mount  -a
After that remount the /home
              #mount –o remount /home
              #quotacheck –avum (to check quota for all user)
              #quotaon /home ( to enable quota)
              #quotaoff ( to disable quota)

User Quota Implement

              #edquota –u username
A file will open here
              Filesystem blocks soft hard inode soft hard
              /dev/sda6 64        120  150  8        0   0
Save the file
The grace period is by defaults 7 days
              #repquota –a (for root check the quota)
              #quota (user check the quota)
              #edquota –t (to change the grace period)
              #edquota –T username ( to change the quota for particular user)

Quota on Group

In the /etc/fstab
/home   defaults, usrquota,grpquota
And save
               #usermod –g  groupname username (add a user in group)
               #quotacheck –avgm (  to check the quota on group)

               #edquota –g groupname (to implement the quota in group)

No comments:

Post a Comment