12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

System Configuration—DisksNote that either the userquota or the groupquota can be specified for each partitionin the Options column. You can also combine both userquota and groupquota onone partition simultaneoulsy:/dev/ad0s1f /usr ufs rw,userquota,groupquota 2 2Partition quota information is kept in the quota.user and quota.group files, in theroot directories of their respective partitions.Once you have performed the above steps, you need to reboot your system to loadnew kernel, and initialize the quota for appropriate partitions. Make sure check_quotas variable in the /etc/rc.conf file is not set to NO. Otherwise system willnot create the initial quota.user and quota.group files. This can also be done byrunning the quotacheck(8) command, manually as follows:# quotacheck –aquotacheck: creating quota file //quota.userAfter rebooting, you can verify the quota activation by using the mount(8) commandor use quota(1) utility to see the current quota statistics for each mount point:# quota –vDisk quotas for user root (uid 0):Filesystem usage quota limit grace files quota limit grace/ 5785696 0 0 464037 0 0Now that you have enabled quotas on your partitions, you are ready to set quotalimits for each user or group.Assigning QuotasThe edquota(8) utility is the quota editor. You can limit the disk space (block quota)and the number of files (inode quota) using this utility, on quota enabled partitions.Two types of quota limits can be set for both inode quota and block quota:Hard limit is the implicit limit that cannot be exceeded. For example, if a user has aquota limit of 200 files on a partition, an attempt to create even one additional file,will fail.[ 16 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!