Univention Bugzilla – Bug 39427
Exam mode should not remove exam users home directory
Last modified: 2020-07-08 17:58:36 CEST
When stopping the exam mode, the home directory of the exam users is removed directly after collecting the exam files. There has been at least one case, where the students have saved their results not within the exam folder but in the root of their exam user home directory. The teacher stopped the exam and the results were lost. Possible solution: - do not remove exam user's home directory via UMC module - after removing the user, the listener module remove-old-homedirs.py moves the exam home directory to the backup directory (default: /home/backup) - add an adjustable cronjob that checks the backup directory for "outdated" exam home directories and removes them ("outdated" means e.g. "older than 8 days"). Possible Extension: - the cron job should also check the other backed up home directories and remove outdated directories (with different expiration date).
The customer reported that it is very important for teachers that for no reason any data will be lost during exam mode. As reported unfortunately the home-shares are immediately deleted after stopping the exam mode. Thats the main reason why teachers from the customer do not use the exam mode anymore. (In reply to Sönke Schwardt-Krummrich from comment #0) > > Possible solution: > - do not remove exam user's home directory via UMC module > - after removing the user, the listener module remove-old-homedirs.py moves > the > exam home directory to the backup directory (default: /home/backup) +1 So, I suggest a backup functionality for the home-shares and a big disclaimer at the beginning and end of the exam mode. It is not necessary to make this backups directly accesible for the teacher itself but for a Administrator it should be possible to restore the results (Desktops included). > - add an adjustable cronjob that checks the backup directory for "outdated" > exam > home directories and removes them ("outdated" means e.g. "older than 8 > days"). +1 > > Possible Extension: > - the cron job should also check the other backed up home directories and > remove > outdated directories (with different expiration date).
Suggestion/request: Do not move the backed-up home directories to /home/backup, but to a folder that is accessible to teachers via Samba, so they can extract data without consulting an administrator. This is required by one of our schools for safely using exam mode.
Fixed with UCS@school 4.4 v2: http://docs.software-univention.de/changelog-ucsschool-4.4v2-de.html#changelog:ucsschool:2019-05-08