Cool Solution - Manage Userquota in the Domain-LDAP

From Univention Wiki

(Redirected from Domain-Userquota)
Jump to: navigation, search
Produktlogo UCS 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.
Note: This article is not yet reviewed.

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

Requirements

In this article we assume that you have some basic knowledge about filesystems, quota and mount points under Linux.

Installation

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.


UCS@school

If user quotas are saved in the LDAP, the following package must be installed additionally:

univention-install univention-domain-userquota-school-acl

The slapd process is restarted automatically after the installation. After the installation it is now possible to reset user passwords when a quota was defined previously.

Archive

There is a version of this article for UCS 4.0.

Personal tools