
Kann mir jemand einen Tipp geben, wo das Problem liegen könnte? Ich habe einen Server mit OpenSUSE, PHP7 und Roundcube. Das Plugin "Password" in Roundcube löst einen Fehler aus:
PHP Error: Password plugin: Unable to execute sudo /usr/sbin/chpasswd in /srv/www/htdocs/roundcubemail/plugins/password/drivers/chpasswd.php
Die sudoers-Datei wird manuell geändert:
nginx ALL=(ALL) NOPASSWD: /usr/sbin/chpasswd
Defaults:nginx !requiretty
als Nginx-Benutzer habe ich den obigen Befehl in der Shell ausprobiert und hatte kein Problem.
in php.ini ist disable_functions = leer und safe_mode ist Off.
Hat jemand eine Idee, wo das Problem liegen könnte?
Vielen Dank im Voraus.
Antwort1
Die Lösung lag in der php-fpm.server-Unit:
# Mounts the /usr, /boot, and /etc directories read-only for processes invoked by this unit.
#ProtectSystem=full