Locked out from my PVE

pkking

New Member
Jun 3, 2023
4
1
3
Hi, i lost the control of my PVE last week after a `chsh`, now i can't logged in using ssh or from Web console, the error message:
1733578583476.png
Since the box booted without a graphical card, i can boot into single user mode to fix it, any suggestions appreciated!
Can i create a privielged container and access the host's root LV?

Thanks!!
 
Login directly at the console TTY and boot grub with ' init=/bin/bash ' then chsh back to bash, you should never change root's shell. If that doesn't fix it then you're probably looking at a reinstall, although booting into a rescue environment and doing a chroot might also work.

Create a 2nd userid with id 0 such as "toor" and use that for fish if you want
 
  • Like
Reactions: zodiac
Login directly at the console TTY and boot grub with ' init=/bin/bash ' then chsh back to bash, you should never change root's shell. If that doesn't fix it then you're probably looking at a reinstall, although booting into a rescue environment and doing a chroot might also work.

Create a 2nd userid with id 0 such as "toor" and use that for fish if you want
Thanks @Kingneutron , finally i solve the problem by plug the harddrive into another PC and modified the `/etc/password`'s root login shell manully :)
 
  • Like
Reactions: Kingneutron

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!