Bug#1039698: gosa postcreate/postmodify command fails when adding/modifying a system
Control: reassign -1 src:gosa Control: found -1 2.8~git20230116.d119cff+dfsg-1 On Di 18 Jul 2023 11:17:41 CEST, Guido Berhoerster wrote: None of the command hooks using sudo work. The issue is that the scripts seem to be executed by gosa without sudo as www-data. The problem seem to be that plugin::callHook() method erroneously strips off the sudo command (see https://github.com/gosa-project/gosa-core/blob/2b22a5550089bab108177a41254f3f9de07eb20c/include/class_plugin.inc#L1612). However I don't see any changes in git blame since 2016, not sure why this used to work in bullseye. -- Guido Berhoerster The issue needs to be resolved via GOsa², so reassigning the bug report. Mike -- mike gabriel aka sunweaver (Debian Developer) mobile: +49 (1520) 1976 148 landline: +49 (4351) 486 14 27 GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: sunwea...@debian.org, http://sunweavers.net pgpTibVTxWyv5.pgp Description: Digitale PGP-Signatur
Bug#1039698: gosa postcreate/postmodify command fails when adding/modifying a system
None of the command hooks using sudo work. The issue is that the scripts seem to be executed by gosa without sudo as www-data. The problem seem to be that plugin::callHook() method erroneously strips off the sudo command (see https://github.com/gosa-project/gosa-core/blob/2b22a5550089bab108177a41254f3f9de07eb20c/include/class_plugin.inc#L1612). However I don't see any changes in git blame since 2016, not sure why this used to work in bullseye. -- Guido Berhoerster
Bug#1039698: gosa postcreate/postmodify command fails when adding/modifying a system
Package: debian-edu-config Version: 2.12.32 After adding a system following the example shown in https://jenkins.debian.net/userContent/debian-edu-doc/debian-edu-doc-en/debian-edu-bullseye-manual-images/gosa_systems_edit_host.png I get the following error: Kann POSTCREATE Kommando (/usr/share/debian-edu-config/tools/gosa-create-host 'ws01.intern') für Modul workgeneric nicht ausführen! However, running the command by hand as www-data works: # runuser -u www-data -- /usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-create-host ws01.intern And after that the added host seems to have been added correctly and is configured as expected via DHCP. -- Guido Berhoerster