Setting Quotas
![]()
To set a disk space quota on any user all you do is the following:
At the telnet prompt type the edit quota command. edquota user-name. For example if you want to limit the user called fred you would type "edquota fred". You would see the following.
Quotas for user fred:
/dev/hda6: blocks in use: 288, limits (soft = 0, hard = 0)
inodes in use: 72, limits (soft = 0, hard = 0)
The above user has not quota zero (0) is no limit. Blocks are disk space and inodes are files. Normally you would want to limit disk space. You can limit the number of files just by entering a hard and soft limit if you want.
Blocks are mesured in 1k size so 50 meg would be 50000 blocks. You have a soft limit and a hard limit. The soft limit and hard limit can be the same or different. The soft limit is the real limit you want while the hard limit is like saying "They can go over by a little bit but not past this number".
For example if we set a 50 meg limit it normally looks like this: soft 50000 , hard 55000. This lets them go over a little but not past 55 meg.
The file will be opened with the vi editor. So you can edit and save in the normal manner.