You must have root user authority.
Note: Because many editors and system utilities create temporary files in the /tmp file system, it should be free of quotas.
chfs -a "quota = userquota" /homeTo enable both user and group quotas on the /home file system, enter:
chfs -a "quota = userquota,groupquota" /homeThe corresponding entry in the /etc/filesystems would appear as follows:
/home: dev = /dev/hd1 vfs = jfs log = /dev/hd8 mount = true check = true quota = userquota,groupquota options = rw
The following sample chfs command establishes user and group quotas for the /home file system, and names the quota files myquota.user and myquota.group:
chfs -a "userquota = /home/myquota.user" -a "groupquota = /home /myquota.group" /homeThe corresponding entry in /etc/filesystems would appear as follows:
/home: dev = /dev/hd1 vfs = jfs log = /dev/hd8 mount = true check = true quota = userquota,groupquota userquota = /home/myquota.user groupquota = /home/myquota.group options = rw
The following sample entry shows quota limits for user davec:
Quotas for user davec: /home: blocks in use: 30, limits (soft = 100, hard = 150) inodes in use: 73, limits (soft = 200, hard = 250)This user has used 30KB of the maximum 100KB of disk space. Of the maximum 200 files, davec has created 73. This user has buffers of 50KB of disk space and 50 files that can be allocated to temporary storage.
When establishing disk quotas for multiple users, use the -p flag with the edquota command to duplicate a user's quotas for another user.
To duplicate the quotas established for user davec for user nanc, enter:
edquota -p davec nanc
Note: It is recommended that you do this each time you first enable quotas on a file system and after you reboot the system.
To enable this check and to turn on quotas during system startup, add the following lines at the end of the /etc/rc file:
echo " Enabling filesystem quotas " /usr/sbin/quotacheck -a /usr/sbin/quotaon -a