Operating System - HP-UX
1833178 Members
2587 Online
110051 Solutions
New Discussion

disk quota for user accounts

 
SOLVED
Go to solution
Satya_6
Frequent Advisor

disk quota for user accounts

Hi,

how do I restrict each user to
fixed disk size, say 2GB per user account?

TIA
satya
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: disk quota for user accounts

Try

man 5 quota



Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: disk quota for user accounts

Victor BERRIDGE
Honored Contributor

Re: disk quota for user accounts

Hi,
Keep in mind you fix a quota to users on a filesystem not on total disk space the box has...
you could create different quota model account and then use them:
1) Activate the quota file:
cpset /dev/null /users/quotas 600 root bin
2) Create a model quota:
edquota berridge
This will invoke vi, that you will have to modify:
fs /users blocks (soft=0 hard=0) inodes (soft=0 hard=0 )
e.g.:
fs /users blocks (soft = 15000, hard = 20000) inodes (soft = 260, hard = 320)

3) To use the quota just fixed for the users
edquota -p berridge .....
4) quotaon -v /home
Dont forget:
At next reboot the quota will end unless you
Modify in /etc/fstab the line like this
/dev/vg00/lvol8 /home hfs rw, suid, quota 0 2
-


All the best
Victor