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