Author Topic: HELP ME PLEASE!!!! About driver chpasswd for change system password  (Read 3698 times)

Offline ballkrubtd

  • Newbie
  • *
  • Posts: 3
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=)



Offline pjnb

  • Newbie
  • *
  • Posts: 2
Re: HELP ME PLEASE!!!! About driver chpasswd for change system password
« Reply #1 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

Offline ballkrubtd

  • Newbie
  • *
  • Posts: 3
Re: HELP ME PLEASE!!!! About driver chpasswd for change system password
« Reply #2 on: January 14, 2015, 02:50:16 AM »
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

Offline ballkrubtd

  • Newbie
  • *
  • Posts: 3
Re: HELP ME PLEASE!!!! About driver chpasswd for change system password
« Reply #3 on: January 14, 2015, 02:59:06 AM »
Woowwww. Thank a lots i can change password now!!!

Solution:

modify sudoers, use visudo, only add:

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

don't change any lines