ws | r44:4c74f9f4c25b |
2 years ago
|
|||
ws | r43:6fa32dfaf33c |
5 years ago
|
|||
ws | r42:e7c378036e33 |
7 years ago
|
|||
ws | r41:0152e8091f0c |
7 years ago
|
|||
ws | r40:0068aed3241c |
10 years ago
|
|||
ws | r39:e8bd111763c9 |
11 years ago
|
|||
ws | r38:fa115af9c367 |
11 years ago
|
|||
ws | r37:58aca714863d |
11 years ago
|
|||
root@mecki.wiedenmann-seile.de | r36:bc316cd848df |
12 years ago
|
|||
root@mecki.wiedenmann-seile.de | r35:de41f1a9e771 |
12 years ago
|
:rem:`|||:sec:|||`Wiedenmann Vacation
Contents
:rem:`|||:sec:|||`Installation
Get the sources from ws-vacation and put the program anywhere on your harddrive:
>>> hg clone https://bitbucket.org/wolfmanx/ws-vacation
Change alias <cite>/vacation</cite> in <cite>lib/ws-vacation.conf.in</cite>, if desired.
Execute the following commands (as user) to create the run-time files:
>>> make clean >>> make
This substitutes the installation directory in the necessary places.
Copy <cite>lib/ws-vacation.conf</cite> to <cite>/etc/apache2/conf.d/</cite>:
>>> sudo cp lib/ws-vacation.conf /etc/apache2/conf.d/
Reload the Apache server:
>>> sudo /etc/init.d/apache2 reload.
The sudo(1) setup allows the apache server to execute vacation(1) as any user (except root) without a password. This is activated by copying the file <cite>lib/ws-vacation-sudo</cite> into the directory <cite>/etc/sudoers.d</cite> (ubuntu):
>>> sudo cp lib/ws-vacation-sudo /etc/sudoers.d/ws-vacation-sudo >>> sudo chmod 0440 /etc/sudoers.d/ws-vacation-sudo
or by appending it to the file <cite>/etc/sudoers</cite> (older SuSE):
>>> cat lib/ws-vacation-sudo | sudo tee -a /etc/sudoers
:rem:`|||:sec:|||`User Management
The file <cite>lib/.htpasswd</cite> can be created by the regular means.
An automated script is available that creates the password database from the system shadow(8) database. Just change into directory <cite>lib</cite> and execute:
>>> sudo php gen_htpasswd.php
Note
If new users are created in the system, this step must be repeated to update the <cite>.htpasswd</cite> file.
:rem:`|||:sec:|||`Configuration
The file <cite>lib/config.php</cite> contains the basic configuration data.
It is possible to fine-tune the standard user selection with:
- $ALLOWED_USERS: users who are always accepted (if present in <cite>/etc/passwd</cite>).
- $INVALID_USERS: invalid users, which are always ignored.
- $ADMIN_USERS: administrators.
The configuraton setting <cite>$EXPERT_ENABLED</cite> allows to globally disable Expert Mode.
The file <cite>lib/language.php</cite> contains language specific translation and also the default vacation(1) message text.
The HTML header and footer can be modified in <cite>lib/templates.php</cite>.
:rem:`|||:sec:|||`Copyright
Copyright (C) 2012, Wolfgang Scherer, <sw@wiedenmann-seile.de>. Sponsored by Wiedenmann-Seile GmbH.