Cool Solution - Manage Userquota in the Domain-LDAP

From Univention Wiki

Revision as of 16:10, 15 June 2018 by Hpeter (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Produktlogo UCS Version 4.3
Produktlogo UCS@School Version 4.3
Produktlogo UCS Version 4.2
Produktlogo UCS@School Version 4.2

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Packages provided by a Cool Solutions Repository are built by Univention, but will not be maintained. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.

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):

univention-install univention-domain-userquota

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

Activating quota support via UMC

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.

Configure quota

Quota settings on the user object

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.

Personal tools