OpenVZ Forum


Home » General » Support » Gentoo Template Creation; Cannot set password
Gentoo Template Creation; Cannot set password [message #40634] Wed, 08 September 2010 13:22 Go to next message
HansHalber is currently offline  HansHalber
Messages: 2
Registered: September 2010
Junior Member
Hi,
I recently created a Gentoo template following the instructions in the wiki: http://wiki.openvz.org/Gentoo_template_creation

When I try setting the password with vzctl, nothing happens.
vzctl set 800 --userpasswd root:secret

There are no changes in either the "passwd" or "shadow" files.

However when I enter the container and set the password with "passwd" there are no problems.

On my centOS container the command is executed correctly:
vzctl set 800 --userpasswd root:secret
"Changing password for user root.
passwd: all authentication tokens updated successfully."

I already double checked the configuration files mentioned in the article and I'm currently out of ideas where to look next.

Kernel: 2.6.18-194.8.1.el5.028stab070.4 x86_64
vzctl-3.0.24.2-1.x86_64
  • Attachment: strace.txt
    (Size: 7.39KB, Downloaded 252 times)
Re: Gentoo Template Creation; Cannot set password [message #40654 is a reply to message #40634] Mon, 13 September 2010 13:38 Go to previous messageGo to next message
RomanU is currently offline  RomanU
Messages: 2
Registered: September 2010
Junior Member
It's a well known error.
Just replace inside of your Gentoo container a string with 'password' in /etc/pam.d/chpasswd to "password required pam_unix.so md5 shadow"
And you'll get it.
Re: Gentoo Template Creation; Cannot set password [message #40656 is a reply to message #40654] Tue, 14 September 2010 05:54 Go to previous messageGo to next message
RomanU is currently offline  RomanU
Messages: 2
Registered: September 2010
Junior Member
I fixed http://wiki.openvz.org/Gentoo_template_creation .
icon14.gif  Re: Gentoo Template Creation; Cannot set password [message #40660 is a reply to message #40654] Tue, 14 September 2010 19:22 Go to previous message
HansHalber is currently offline  HansHalber
Messages: 2
Registered: September 2010
Junior Member
Works great. Thank you!

[Updated on: Tue, 14 September 2010 19:23]

Report message to a moderator

Previous Topic: iptables-modules inside ve?!?!? (statistic and marking)
Next Topic: Ubuntu 10.04LTS templates broken?
Goto Forum:
  


Current Time: Mon May 06 07:30:01 GMT 2024

Total time taken to generate the page: 0.01900 seconds