Univention Bugzilla – Bug 48255
Listener modules remove-old-homedirs.py and remove-old-sharedirs.py are not documented
Last modified: 2023-06-12 15:39:48 CEST
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
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?
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.
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
(In reply to Daniel Tröder from comment #3) > Only school users (student, teacher, staff) homes are backuped. And SchoolAdmins!
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.