SymptomsIf you try to create/modify a domain's hosting account properties, the following error appears:
"Error: Unable to update hosting preferences: Unable to create system
user: usermng: PAM password change failed: 6, Permission denied
System error 2: No such file or directory"
CauseMost likely, the PAM configuration for Plesk was damaged/reset.
ResolutionTo rebuild Plesk PAM settings, use this command:
$PRODUCT_ROOT_D/pam_plesk_config/pam_plesk_install -f /etc/pam.conf -m /usr/local/psa/pam_plesk/pam_plesk.so -v
If there is no /etc/pam.conf file, skip this argument. PAM configuration is stored in /etc/pam.d/ in this case.
See "pam_plesk_install --help" for more information and OS-specific options.
Note that pam_plesk_install is a Python script. If you get any error during execution, make sure that the python RPM is installed properly and that no files are missing/modified with the following command:
# rpm -qa | grep python | xargs rpm -V