Can't access my proxmox anymore

JackHolmes

New Member
Jun 19, 2017
9
0
1
44
Hi guys.
I added a new user to the system , where he can log fine (limited access ofcourse).
But after I did that , I lost access to my root account. The password that worked fine before now don't work.
SSH also does not work. What do I do?
Virtual Environment 4.4-13/7ea56165
 
Last edited:
Hands on recovery it is then. Boot to bash, reset the password.
If you don't have local access you could try chrooting into the install.
And after you regained access, double check the access you gave to that user.
 
Hands on recovery it is then. Boot to bash, reset the password.
If you don't have local access you could try chrooting into the install.
And after you regained access, double check the access you gave to that user.
I don't have local access , could you explain a bit more how do I chroot into the install?
 
You have some sort of management environment from your hoster, I presume. The same interface where you installed the proxmox image from. You load a live image of any Linux distro and use the
Code:
chroot
command to switch into the installed proxmox.
Code:
man chroot
explains how the command works. When chrooted into the install you can work as if you were logged in directly. So passwd will affect proxmox' root user.
While you're there, find out what happened. /var/log/auth.log might contain some hints.
If chroot doesn't work you may have to restore the machine to default. I hope you have a backup.