Cool Solution - Manage Userquota in the Domain-LDAP
From Univention Wiki
The common way to deploy filesystem quota in UCS is either to specify it for every user on every filesystem or to populate a quota policy for a fileshare. The configuration of quotas is handled in the UCS manual. Univention domain-userquota offers a third possibility where quota information is stored in the LDAP and is centrally configurable at the user object in the Univention Management Console (UMC).
In this article we assume that you have some basic knowledge about filesystems, quota and mount points under Linux.
After including the Cool Solutions Repository, install the following package on the UCS DC Master, every DC Backup and on every UCS where you want to make use of quota (e.g. UCS Memberserver serving as fileserver):
The package univention-domain-userquota depends on the additional package univention-domain-userquota-schema. The latter will take care of the LDAP- and UMC integration on the DC Master and the DC Backup systems. Make sure that both packages are installed and all join scripts are executed (i.e. in the UMC Domain join module).
Preparing your filesystem
To make filesystem quota work at all, your filesystem needs to be mounted with the quota option usrquota. You can achieve this either by adding the option usrquota to the local /etc/fstab or - much easier - through the UMC module Filesystem quotas. Just select your filesystem and click Activate.
In this example we mounted the filesystem of the first partition of an additional harddrive (sda1) to /shares/Freigabe.
The Univention Management Console can now be used to configure filesystem quota. Open the Users module and then open a user. There you have a new tab called Quota. Now you can specifiy quota settings for this user for every needed combination of host and filesystem.
You need to name the server (host) that holds the share or filesystem, name the mount point of the desired filesystem (path) and then the amount of MiB or GiB that should be set for the quota. By clicking on the +-Button you can add more quota settings.
Please make sure you understand how mount points work under Linux. The specified quota always applies to the whole filesystem. So if you have several shares on the same filesystem you cannot configure different quotas for these shares with this package.
There is a version of this article for UCS 4.0.