Symptoms
After creating a Container using Ubuntu 8.10 or higher EZ OS template, it is not possible to log into Parallels Power Panel of the Container, and the following error message is shown:"Invalid username or password, please try again."
However it is possible to log into the Container via SSH.
Cause
The default policy in Ubuntu 8.10 seems to be forced to use SHA512 hashing. For example, in Debian 5.0 (and previous versions of Debian, Ubuntu) it was set to MD5:# grep '^[^#]' /etc/pam.d/common-password
password required pam_unix.so nullok obscure min=4 max=8 md5Resolution
It is sufficient to update the file /etc/pam.d/common-password and reset the 'root' password inside a Container (example for Container #101):# vzctl enter 101
# sed '/^password.*pam_unix.so.*sha512/ s~sha512~md5~' -i etc/pam.d/common-passwordAfter that this file /etc/pam.d/common-password will contain these lines:
# grep '^[^#]' /etc/pam.d/common-password
password [success=1 default=ignore] pam_unix.so obscure md5
password requisite pam_deny.so
password required pam_permit.soand remember to reset 'root' password:
# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfullyIt is necessary to perform this modification for every created container. In order to automate this fix, it should be possible to update "post-install" script of the affected OS template, e.g. add to the file "/vz/template/ubuntu/8.10/x86/config/os/default/post-install" the following line:
sed '/^password.*pam_unix.so.*sha512/ s~sha512~md5~' -i etc/pam.d/common-password
And then rebuild the cache of the OS template:
# vzpkg remove cache ubuntu-8.10-x86
# vzpkg create cache ubuntu-8.10-x86