Solution:modify sudoers, use visudo, only add:apache ALL=NOPASSWD: /usr/sbin/chpasswdDefaults:apache !requirettydon't change any lines