[LabFrontPage] [TitleIndex] [WordIndex] 

User Management

How to create an account

  1. Create it via Gosa(https://gosa.ps.uni-saarland.de/), use the appropiate Template

  2. Edit the description key in the LDAP-Database if necessary. Gosa will create something like "@created=<today>, @puc=<primary user group>". This is done using the /usr/local/sbin/gosa-postcreate script, which will also create the home directory and set the quotas appropriatly.

  3. For researchers, add the user manually to the ps-r group.

Technical details

The script is called as a post-create hook of the "userManagement" plugin. From the /etc/gosa/gosa.conf file:

<plugin acl="users/posixAccount" class="userManagement" postcreate="/usr/bin/sudo /usr/local/sbin/gosapostcreate %uid %gidNumber" />

It does 3 things:

  1. It creates the users home directory
  2. It sets the quota, using the quota values of the corresponding template user (e.g. ps-m-template)
  3. It creates the description message with "puc" and "created" values

How to create an account manually (i.e. without gosa)

Create the mailbox

Create the UNIX user

Enter the necessary LDAP entries

TODO write this part (the mancreated mailbox currently exists on the system, while the UNIX user doesn't)

How to delete an account

  1. cd  /root/bin
    ./delete-account NAME > remove-NAME.sh

This may take a while since the script searches in the whole filesystem for files of the user NAME. The generated script should perform the following tasks:

  1. check the generated script and modify it, if necessary
  2. execute this script
  3. remove the user via GOsa

How to modify user files

For modifying all files of a user, the script  /root/bin/apply_to_files.sh may be useful. For example,  /root/bin/apply_to_files.sh kalleb ps-m 'chgrp ps-g' > modify_kalleb.sh generates a script, that applies the command chgrp ps-g FILE to all files that are owned by user kalleb and belong to the group ps-m.

Bugs: The script  /root/bin/apply_to_files.sh currently has problems with broken symlinks and filenames that contain brackets or quotes.

Common modifications to users

Elevate current student account to lab member account

Demote former member account to guest account

TODO: consider implementing a timeout mechanism for former accounts

Description key format

Valid properties

Policy errors

Policy warnings

Required mail addresses

Required quotas

These values are hardcoded in the /etc/cron.daily/check-policy script in the definition of the $policy array. All values are in KB


2019-12-04 16:07