Score:0

OpenSUSE: PHP - Unable to execute sudo /usr/sbin/chpasswd

ng flag
kbu

Could somebody give a tip, where can be a problem. I have a Server with OpenSUSE, PHP7 and roundcube. Plugin "Password" in roundcube fire an error:

PHP Error: Password plugin: Unable to execute sudo /usr/sbin/chpasswd in /srv/www/htdocs/roundcubemail/plugins/password/drivers/chpasswd.php

sudoers file is changed with manual:

nginx ALL=(ALL) NOPASSWD: /usr/sbin/chpasswd
Defaults:nginx !requiretty

as nginx user, I've tried in shell the command above and had no problem.

in php.ini disable_functions = is empty and safe_mode is Off.

Do someone have an Idea, where could be the problem?

Thank you in advance.

kbu avatar
ng flag
kbu
For testing purposes, nginx and php-fpm were started under the root user, but roundcube fired the same error
Score:0
ng flag
kbu

The solution was in php-fpm.server unit:

# Mounts the /usr, /boot, and /etc directories read-only for processes invoked by this unit.
#ProtectSystem=full

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.