Bug 48255 - Listener modules remove-old-homedirs.py and remove-old-sharedirs.py are not documented
Listener modules remove-old-homedirs.py and remove-old-sharedirs.py are not d...
Status: CLOSED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: Documentation
UCS@school 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-12-03 13:06 CET by Sönke Schwardt-Krummrich
Modified: 2023-06-12 15:39 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018112621000608
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2018-12-03 13:06:34 CET
The listener module remove-old-homedirs.py is not documented and therefore home directories get surprisingly moved into the backup if a user is removed. If not found by accident, the admin has no idea where to look for the backups:
→ UCRV ucsschool/listener/oldhomedir/targetdir defines the backup directory
Comment 1 Christina Scheinig univentionstaff 2018-12-04 09:20:38 CET
In my testenvironment I was a little bit confused.

ucr get ucsschool/listener/oldhomedir/targetdir
shows: /home/backup/

But I find every deleted share in /home/backup/groups/
/home/backup was empty besides the group directory.

Is there something more to configure or more dependencies?
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2018-12-04 11:06:20 CET
The remove-old-sharedirs.py module should also be documented:

ucsschool/listener/oldsharedir/targetdir?"/home/backup/groups/"
ucsschool/listener/oldsharedir/prefixes?"/home/"

It must be clearly stated that this listener module applies to all shares that are located below one of the specified prefixes.
Comment 3 Daniel Tröder univentionstaff 2018-12-04 11:14:53 CET
Only school users (student, teacher, staff) homes are backuped.
Only existing homes are backuped.

I tested:
1) created a student "blazek.rus" in school "SchuleEins"
2) logged in as the user, so its home directory is created: 
   # smbclient -U blazek.rus //localhost/blazek.rus
3) checked home was created: ls /home/SchuleEins/schueler/blazek.rus/ → found "windows-profiles"
4) deleted user
5) found in /var/log/univention/listener.log: 04.12.18 11:09:17.937  LISTENER    ( WARN    ) : remove-old-homedirs: moved /home/SchuleEins/schueler/blazek.rus to /home/backup/blazek.rus.1543918157.
6) found users home in /home/backup/: # ls -la /home/backup/blazek.rus.1543918157
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2018-12-04 15:04:30 CET
(In reply to Daniel Tröder from comment #3)
> Only school users (student, teacher, staff) homes are backuped.
And SchoolAdmins!
Comment 5 Jan-Luca Kiok univentionstaff 2023-06-12 15:32:10 CEST
This issue has been filed against UCS@school 4.3 or earlier.

UCS 4.3 is out of maintenance and UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.