1829883 Members
10741 Online
109993 Solutions
New Discussion

Re: user quota

 
SOLVED
Go to solution
peterchu
Super Advisor

user quota

We have about 200 users in the system , but now the users can generate unlimited size of file to the server , how can I limit ( set the quota ) the user file size can use ? thx.

8 REPLIES 8
Shaikh Imran
Honored Contributor

Re: user quota

Hi,

Try this &see if this could help:

http://www.txol.net/linux/quotas.htm

Regards,

I'll sleep when i am dead.
Alexander Chuzhoy
Honored Contributor

Re: user quota

peterchu
Super Advisor

Re: user quota

thx

I have run the edquota it pop the below messages , how to config it ? thx

# /usr/sbin/edquota acc_usr
No filesystems with quota detected.
Sยภเl Kย๓คг
Respected Contributor

Re: user quota

The edquota program is a quota editor that creates a temporary file of the current disk quotas used by the super-user root to set quotas for users or group of users in the system

Use edquota and use vi editor to set the quota
#edquota -u

If you want to set the grace period you can use
#edquota -t
and set it with the help of 'vi'

regards
SK
Your imagination is the preview of your life's coming attractions
Sยภเl Kย๓คг
Respected Contributor
Solution

Re: user quota


sorry a small mistake

use this way
#edquota -u
#edquota -g
regards
SK
Your imagination is the preview of your life's coming attractions
vetriselvan s
Advisor

Re: user quota

Quota limits for individual users can be set up for file and data block usage on a file system. A user quota consists of limits for these resources. The following limits can be set for each resource:

* The hard limit is an absolute limit that cannot be exceeded under any circumstances.
* The soft limit (which is lower than the hard limit) can be exceeded, but only for a limited time. The time limit can be configured on a per-file system basis, and a default value of seven days is set by VxFS. There are separate time limits for files and data blocks.

An example of the use of soft limits is when the user needs to run applications that might generate large temporary files. In cases like these, quota limit violations may be allowed for a limited duration. However, if the user continuously exceeds the soft limit, no further allocations are allowed after the expiration of the time limit.

The system administrator is responsible for assigning hard and soft limits to the users, as well as setting associated time limits. Although file and data block limits can be set individually for each user, the time limits apply to the file system as a whole. Quota information associated with user IDs is stored in a quotas file, as described in Quotas File.
vetriselvan s
Advisor

Re: user quota

Hi
Use
edquota -u

FYI

Quota limits for individual users can be set up for file and data block usage on a file system. A user quota consists of limits for these resources. The following limits can be set for each resource:

* The hard limit is an absolute limit that cannot be exceeded under any circumstances.
* The soft limit (which is lower than the hard limit) can be exceeded, but only for a limited time. The time limit can be configured on a per-file system basis, and a default value of seven days is set by VxFS. There are separate time limits for files and data blocks.

An example of the use of soft limits is when the user needs to run applications that might generate large temporary files. In cases like these, quota limit violations may be allowed for a limited duration. However, if the user continuously exceeds the soft limit, no further allocations are allowed after the expiration of the time limit.

The system administrator is responsible for assigning hard and soft limits to the users, as well as setting associated time limits. Although file and data block limits can be set individually for each user, the time limits apply to the file system as a whole. Quota information associated with user IDs is stored in a quotas file, as described in Quotas File.
Jan Sladky
Trusted Contributor

Re: user quota

hi peterchu,

individulal or group quota you can set by this way:

1. attach file system with usrquota,grpquota parameter

2. quotacheck -u /home/ -creates aquota file on file system

3. edquota -u sweet /home/ -sets quota for user sweet (g for group)

Disk quotas for user sweet (uid 500): Filesystem blocks soft hard inodes soft hard
/dev/vg01/lv10 0 5000 7000 0 0 0

soft limit 5MB can be exceeded for given time hard limit 7MB can't be exceeded inodes counts files and dirs

4. quotaon /home -quota switch on

br Jan
GSM, Intelligent Networks, UNIX