• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Passwords are not PLAIN anymore in Plesk 11?

HoracioS

Regular Pleskian
Since the Plesk v11.09 MU#1 all the passwords are stored in $AES-128-CBC$ cypher format.

Can I change or back to PLAIN again?

Thanks,
Horacio
 
Hi,

No I'm afraid not (according to the documentation). As far as I recall the upgrade process won't auto-convert the passwords, you have to activate it, new installs though will always have encrypted passwords.

Paul.
 
I think it could be an option in the panel to be encrypted or not.
Depending on your customer service would be a pain to change permanently your users´s passwords and you or your customers cannot use tools like PowerToys ...

regards,
Horacio
 
By default the passwords are not encrypted. You have to enter a security key or and enable in security settings for the server wide password encryption to take place.
 
Yes, you are right!!!

Home-->Tools & Settings-->Security Policy

But take care about this....

The enhanced security mode is turned on.

This means the following:
All sensitive data in Panel are reliably protected from unauthorized access.
If you employ third-party software which uses the Panel remote API, note that it may be affected by the mode. Specifically, in the enhanced security mode, Panel prohibits obtaining sensitive data (such as user passwords) through the API.

Note that the enhanced security mode cannot be turned off.
 
In new installations, the enhanced security mode is turned on by default.

Anybody know how to install a new server with this mode turned off ? Not upgrading from 10.x please...

Regards,
Horacio
 
Thank you IgorG !!!
This parameter in MYSQL was the solution I needed!!!!

Best regards,
Horacio
 
Yes, it is disabled in case of upgrade and enabled in case of fresh installation.
 
And I can enable the encryption by activating the enhanced security mode? I´m still at Plesk 10 but want to know this for later.
 
And I can enable the encryption by activating the enhanced security mode? I´m still at Plesk 10 but want to know this for later.

Yes, you can. Just go to Home>Tools & Settings>Security Policy
 
if you use an external Mysql Database you must also change the Passord for the admin Account, because plesk gets an Access Denied from Mysql. It seems that Plesk use encrypted Password to connect to mysql if enhanced security mode is turned on.

you can do this by logging in to the external Mysql Insatance as root and change the Password for the admin Account with
update user set password=PASSWORD('YOU_UNENCRYTED_PASSWORD') where user='admin';
 
I have written several scripts to get info like an FTP-password and parts don't work anymore.
With what hash can I decrypt these passwords and what would be the best command in bash to do this?
 
I wrote a little script for Plesk to write passwords in PLAIN text (disable Enhanced Security Mode in Security Policy section anytime). With Enhanced Security Mode disabled, you can still use PowerToys or other tools/scripts to read the passwords.

Best regards,
Horacio D. Stolovitzky

#!/bin/bash

MYSQL_BIN=`which mysql`
WGET_BIN=`which wget`
CHMOD_BIN=`which chmod`
CHOWN_BIN=`which chown`
TOUCH_BIN=`which touch`

/bin/rm -f /tmp/sec_pass

$MYSQL_BIN -uadmin -p`cat /etc/psa/.psa.shadow` -e "select val into outfile '/tmp/sec_pass' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' from psa.misc where param = 'secure_passwords';"

VALOR_ACTUAL=`cat /tmp/sec_pass`

echo "El valor de actual de la la variable secure_passwords es: $VALOR_ACTUAL ";
echo "Desea Cambiarlo a o dejarlo en este valor ? ( S/N )"
echo " "
echo " "
echo " "
read SN

if [ "$SN" == "S" ] || [ "$SN" == "s" ]; then
if [ "$VALOR_ACTUAL" == "true" ]; then
echo "Actualizo el valor a FALSO !!!"
$MYSQL_BIN -uadmin -p`cat /etc/psa/.psa.shadow` -e "update psa.misc SET val = 'false' where param = 'secure_passwords';"
else
echo "Actualizo el Valor a VERDADERO !!!"
$MYSQL_BIN -uadmin -p`cat /etc/psa/.psa.shadow` -e "update psa.misc SET val = 'true' where param = 'secure_passwords';"
fi
else
echo "Usted decidio dejar el valor en $VALOR_ACTUAL"
fi
 
I wrote a little script for Plesk to write passwords in PLAIN text (disable Enhanced Security Mode in Security Policy section anytime). With Enhanced Security Mode disabled, you can still use PowerToys or other tools/scripts to read the passwords.

I will consider to change the security in Plesk, but I would rather decode the password in my scripts.
Or is the hash with which it is encrypted not available to me?

Is its hash unique to my server or is it a Plesk hash?

Security through obscurity was and is a bad thing!
Please be open about it....
 
I think I'm close with this command:

echo <encrypted password> | openssl enc -aes-128-cbc -a -d -salt -pass pass:`cat /etc/psa/private/secret_key`

The problem is that it isn't able to use the content of /etc/psa/private/secret_key
Maybe it needs this program?

/usr/local/psa/admin/sbin/pkey2rsapkey

Come on! help me!
 
Back
Top