Univention Bugzilla – Bug 31539
Removal of user logon script fails
Last modified: 2014-08-27 17:01:44 CEST
24.05.13 15:06:30.210 LISTENER ( WARN ) : not removing home of user exam-anton57: /home/exam-anton57 is not a directory Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/ucs-school-user-logonscript.py", line 483, in handler userchange(dn, new, old) File "/usr/lib/univention-directory-listener/system/ucs-school-user-logonscript.py", line 473, in userchange os.remove("%s/%s.vbs" % (path, old['uid'][0])) OSError: [Errno 13] Permission denied: '/var/lib/samba/netlogon/user/exam-anton57.vbs' The code around os.remove("%s/%s.vbs" % (path, old['uid'][0])) does not use listener.setuid(0) which is why the removal fails. This should have no impact on recreated users since the listener module always overwrites existing scripts.
This issue was reported by a customer. It would be nice if the old scripts were removed to improve the overview.
Again reported 2014041721010635
*** Bug 35082 has been marked as a duplicate of this bug. ***
The related code path is now enclosed with a listener.setuid(0)-try-finally-listener.unsetuid() block. ucs-school-netlogon-user-logonscripts (10.0.3-1) unstable; urgency=low
Changelog missing. Fix: OK, user removal no longer raises the exception. Code review: OK
(In reply to Florian Best from comment #5) > Changelog missing. → FIXED
OK
UCS@school 3.2 R2 v2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html If this error occurs again, please use "Clone This Bug".