Wednesday, March 10, 2010

Quota:Applying quota limits

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi

Applying quota limits


For setting quota limit for specific user of choice, we will run edquota command, as follows:


# edquota anil


This command will set quota for user anil. By default, this will open the quota information file for anil in vi editor. The screen will display output as follows:


Disk quotas for user anil (uid 504)


Filesystem blocks soft hard inodes soft hard


/dev/sda3 8 0 0 1 0 0


Soft limit: It is a maximum amount of disk space or inodes allocated to the user. Unlike hard limit, the soft limit may be exceeded for a certain amount of time, called grace period. It acts as hard limit, if there is no grace period. edquota -t command is used to set grace period. The grace period can be expressed in seconds, minutes, hours, days, week or months.


Hard limit: This is absolute limit on inodes or on amount of disk space allocated to the user, if the grace period is there.


In the previous example, there are eight blocks of data in KB and one inode used in anil’s home directory. We can set soft and hard limits in both the categories. For 10 MB soft limit and 20 MB hard limit for blocks, write as 10000 and 20000 under soft and hard categories of block by editing anil’s file using edquota command.




No comments:

Post a Comment