[Pkg-giraffe-maintainers] Bug#933887: Default userscripts try to execute relocated kscriptrun

Martin Wolf mwolf at adiumentum.com
Sun Aug 4 22:08:37 BST 2019


Package: kopano-server
Version: 8.7.0-3

The default userscript for adding new users in
/usr/lib/kopano/userscripts/createuser tries to execute kscriptrun, but
fails, because it has been relocated (moved).

As of writing, the /usr/lib/kopano/userscripts/createuser contains as
last line:

> exec "/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/createuser.d
/etc/kopano/userscripts/createuser.d

However due to kscriptrun relocation, it should be instead:

> exec "/usr/lib/x86_64-linux-gnu/kopano/kscriptrun"
/usr/lib/kopano/userscripts/createuser.d
/etc/kopano/userscripts/createuser.d

Note that this indeed affects all userscripts which breaks all
administrative user/group/company interactions:

$ grep -r kscriptrun /usr/lib/kopano/userscripts/
/usr/lib/kopano/userscripts/deletegroup:exec
"/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/deletegroup.d
/etc/kopano/userscripts/deletegroup.d
/usr/lib/kopano/userscripts/createuser:exec
"/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/createuser.d
/etc/kopano/userscripts/createuser.d
/usr/lib/kopano/userscripts/createcompany:exec
"/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/createcompany.d
/etc/kopano/userscripts/createcompany.d
/usr/lib/kopano/userscripts/creategroup:exec
"/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/creategroup.d
/etc/kopano/userscripts/creategroup.d
/usr/lib/kopano/userscripts/deleteuser:exec
"/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/deleteuser.d
/etc/kopano/userscripts/deleteuser.d
/usr/lib/kopano/userscripts/deletecompany:exec
"/usr/libexec/kopano/kscriptrun"
/usr/lib/kopano/userscripts/deletecompany.d
/etc/kopano/userscripts/deletecompany.d
$

I guess the relocation happened because Debian doesn't populate
/usr/libexec directory.

Linux 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u1 (2019-07-19) x86_64
GNU/Linux



More information about the Pkg-giraffe-maintainers mailing list