Univention Bugzilla – Bug 56866
Samba Backup Failure Due to Symbolic Link Issue
Last modified: 2023-11-29 14:56:15 CET
A customer reported that /usr/sbin/univention-samba4-backup aborts with a traceback in case there is a symlink in /var/lib/samba/sysvol/$(hostname -d)/scripts/ This additionally causes tempfiles below /tmp to quickly pile up.
For the primary issue I propose https://git.knut.univention.de/univention/ucs-patches/-/commit/ce341a3a595170fcaa180a8ee9647c480d62b842 for the secondary issue I propose sth like https://git.knut.univention.de/univention/ucs/-/commit/492228a7773b24928e6680ed8f136064bbe60fa4
scope: ucs_5.0-0-errata5.0-5 src: samba fix: 2:4.18.3-1A~5.0.0.202311271227 fixed by ignoring symbolic links in backup tool (30_bug-56866-handle-symlinks-in-offline-backup.quilt for samba 4.18.3-1)
Verified: * functional test with symlink: no crash, symlink present in archive * advisory * test case We should upstream the patch.
A second customer has this issue, and the samba backup fails on two school slave servers.
Created attachment 11153 [details] Patch aus dem Pastebin
<https://errata.software-univention.de/#/?erratum=5.0x891>