SAAS - How to fix Apple OS X Server disk quotas


Some versions of Mac OS X server / client do not apply quota restictions when applied using Workgroup Manager (tested up to version 10.2.3).

To apply quotas, you must create them manually using Terminal commandline util

1. Use 'touch' to create the quota files 2. Turn on quota by using command 'quotaon -a'

You must do this manually - we found that using the quota checkbox in WorkGroup Manager (enable disk quota on this volume) does not work [Sharing - All - SelectDisk you want quota on].

The OS X quota files are named differently compared with many other BSD and linux implementations.

* On UFS volumes files are named:

._.quota.ops.user. _.quota.user .quota.ops.user .quota.user

* On HFS+ volumes files are:

.quota.ops.user .quota.user

NB: in Workgroup manager

To get the quota's to work in Terminal, FTP, AFP you must manually edit the quota for groups and users with the command edquota.

edquota username

or...

edquota userid

The edquota applications can only be run as root

Example of an edquota session

Quotas for user test2:/: 1K blocks in use: 796, limits (soft = 0, hard = 4000) inodes in use: 7, limits (soft = 0, hard = 0)/Volumes/chunder: 1K blocks in use: 0, limits (soft = 0, hard = 0)
inodes in use: 0, limits (soft = 0, hard = 0)/Volumes/mail: 1K blocks in use: 0, limits (soft = 0, hard = 0) inodes in use: 0, limits (soft = 0, hard = 0)

The example above shows that user test2 has no limits on volumes chunder and mail.

On the root volume (the startup disk), he has a 4 MB limit (actually 4000k, 4 MB is 4096k ). So test2 can still store 4000-796 = 3204 k's of information on the startup disk and unlimited on the rest.

man edquota for more information.

No Frames! | Search | About SAAS | Clients | Courses | Solutions | Feedback | Bookmark | Translate

Telephone: +61-2-9981-6864 - Fax: +61-2-9981-4771

Copyright © 1992-2001 Studio of Arts And Sciences.
    W3C code validation

  Site Menu
       home
       about us
       projects
       clients
       solutions
       training
       feedback
       search
       schoolRadio
       bookmark