Cannot change hosting settings for a domain: "Plain password could not be obtained"

Refers to:

  • Plesk

Created:

2016-11-16 12:46:23 UTC

Modified:

2016-12-21 19:10:39 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot change hosting settings for a domain: "Plain password could not be obtained"

Symptoms

The following error is shown when trying to save hosting preferences for the plesk11.example.com domain through Plesk:

Home > Subscriptions > plesk11.example.com > Websites & Domains > Web Hosting Access -> click OK

Error: Plain password could not be obtained.

Cause

The error is caused by an invalid password type of the domain system user. Use the following command to get the settings:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e"select d.name as domains, su.login as sys_user, a.type as 'password_type', a.password from domains d, hosting h, sys_users su, accounts a where d.id=h.dom_id and h.sys_user_id=su.id and su.account_id=a.id and d.name='plesk11.example.com'"
+--------------------+----------+---------------+------------------------------------+
| domains | sys_user | password_type | password |
+--------------------+----------+---------------+------------------------------------+
|plesk11.example.com | FTP_USER | md5 | $1$Vsah2NHY$riMt/fAKmLbJeT71SUFLM/ |
+--------------------+----------+---------------+------------------------------------+

Plesk 11.0.9 supports only two password types, plain and sym, according to the feature "Enhanced security mode" ( Home > Tools & Settings > Security Policy ). The "plain" password type is used for new domains when "Enhanced security mode" is disabled; "sym" is used when the feature is enabled.

Other password types are not supported by Plesk 11.0 and cause the error when updating hosting preferences. Unsupported password types may appear in PP domains after migrating from another hosting platform.

Resolution

Change the password of the domain FTP user through Plesk ( Home > Subscriptions > example.com > Websites & Domains > Web Hosting Access: Password ) or with CLI:

# /usr/local/psa/bin/domain --update plesk11.example.com -passwd NEW_PASSWORD

Plesk will save the password with a valid type.

Have more questions? Submit a request
Please sign in to leave a comment.