OpenVZ Forum


Home » General » Support » Root Password
Root Password [message #32427] Thu, 07 August 2008 13:00 Go to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Quote:

[root@Char ~]# uname -a
Linux Char.ICS.local 2.6.18-53.1.19.el5.028stab053.14 #1 SMP Thu May 8 16:29:13 MSD 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@Char ~]# vzctl
vzctl version 3.0.22


The user of an fc7 VPS was complaining about the password getting reset... so I used the vzctl command to reset the password, which it reported was successful. However, I cannot login with the password I just set. I tried making a new user, but that doesn't set either.
Re: Root Password [message #32436 is a reply to message #32427] Thu, 07 August 2008 19:48 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Try vzctl enter VEID

# passwd user

Smile


http://kenjy.net |Live net !!!
Re: Root Password [message #32437 is a reply to message #32436] Thu, 07 August 2008 21:17 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Didn't solve it.
Re: Root Password [message #32438 is a reply to message #32436] Thu, 07 August 2008 21:53 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Well you can try to remove the user (after moving /home/user to /home/user_tmp) then add it again and move the home to the correct place, see if this works.

http://kenjy.net |Live net !!!
Re: Root Password [message #32439 is a reply to message #32438] Thu, 07 August 2008 22:01 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I did try with a brand new user and had the same result.

Would these failures be showing up in a log somewhere?
Re: Root Password [message #32442 is a reply to message #32427] Fri, 08 August 2008 02:16 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Check /var/log/auth.log while trying to login

http://kenjy.net |Live net !!!
Re: Root Password [message #32459 is a reply to message #32442] Sat, 09 August 2008 15:26 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Of all the different VPSes that I have, the only two that have an auth.log file are Debian systems. This particular VPS is FC7.
Re: Root Password [message #32511 is a reply to message #32427] Tue, 12 August 2008 21:45 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
*bump*

Ideas?
Re: Root Password [message #32516 is a reply to message #32511] Wed, 13 August 2008 04:05 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
johan, to isolate this problem, you should do the following:

after resetting the password, is the hash in /etc/shadow changed? If not, paste a strace of the passwd command. If yes, you are totally locked out of the VE for any users (except for vzctl enter) because you are unable to set any passwords, correct?

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Root Password [message #32523 is a reply to message #32516] Thu, 14 August 2008 02:51 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I cannot login with any users I have tried, both existing, and new. The shadow file changes.
Re: Root Password [message #32524 is a reply to message #32523] Thu, 14 August 2008 03:02 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
I have never heard of this problem. Do you see the same problem with other OS templates? Is the OS template unmodified from the openvz site?

-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Root Password [message #32525 is a reply to message #32524] Thu, 14 August 2008 03:09 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
This is the only Fedora Core 7 VE I have, and it initially worked. Someone else has been using this VE, so I don't know what's different.

My CentOS 4 VEs work fine.
Re: Root Password [message #32526 is a reply to message #32525] Thu, 14 August 2008 03:13 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Seems like an application level issue and not related to openvz at all. I would treat the VE as compromised/mangled and reinstall with a fresh distro.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Root Password [message #32658 is a reply to message #32526] Fri, 22 August 2008 12:31 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I did create a new VE, but kept the old one around if anyone wanted to try to figure it out.
Re: Root Password [message #32671 is a reply to message #32427] Fri, 22 August 2008 15:41 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Your new VE have the same problem or its working correctly?

http://kenjy.net |Live net !!!
Re: Root Password [message #38304 is a reply to message #32671] Sat, 05 December 2009 02:48 Go to previous message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
oops, I forgot about this.

umm... I think I used a different distro and it worked.
Previous Topic: Debian compatible rhel5 linux-headers
Next Topic: Error when installing
Goto Forum:
  


Current Time: Tue Nov 19 04:15:06 GMT 2024

Total time taken to generate the page: 0.03024 seconds