Roundcube Community Forum

 

HELP ME PLEASE!!!! About driver chpasswd for change system password

Started by ballkrubtd, August 29, 2014, 02:08:32 AM

Previous topic - Next topic

ballkrubtd

HELP ME PLEASE!!!! About driver chpasswd for change system password

my visudo

apache ALL=NOPASSWD: /usr/sbin/chpasswd
www-data ALL=NOPASSWD: /usr/sbin/chpasswd


UNIX on CentOS5.10x64
Roundcube Webmail 1.0.2


My Error

[29-Aug-2014 12:58:44 +0700]: PHP Error: Password plugin: Unable to execute sudo /usr/sbin/chpasswd 2> /dev/null in /var/www/html/roundcubemail/plugins/password/drivers/chpasswd.php on line 32 (POST /roundcubemail/?_task=settings&_action=plugin.password-save?_task=&_action=)



pjnb

Solution:

modify sudoers, use visudo, only add:

apache ALL=NOPASSWD: /usr/sbin/chpasswd
Defaults:apache !requiretty

don't change any lines

ballkrubtd

my last line sudoers after config that's right?

## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now

apache ALL=NOPASSWD: /usr/sbin/chpasswd
Defaults:apache !requiretty

ballkrubtd

Woowwww. Thank a lots i can change password now!!!

Quote from: pjnb on January 14, 2015, 12:27:48 AM
Solution:

modify sudoers, use visudo, only add:

apache ALL=NOPASSWD: /usr/sbin/chpasswd
Defaults:apache !requiretty

don't change any lines