Guten Tag,
Ich weiß ehrlich gesagt nicht weiter, ich habe keinen Zugriff per SSH und weiß leider auch nicht wie ich dieses Problem lösen kann. Weiß jemand zufällig Rat?
Vielen Dank im Voraus.
Guten Tag,
Ich weiß ehrlich gesagt nicht weiter, ich habe keinen Zugriff per SSH und weiß leider auch nicht wie ich dieses Problem lösen kann. Weiß jemand zufällig Rat?
Vielen Dank im Voraus.
Esc
or Shift
key repeatedly right after the BIOS/UEFI screen.e
to edit it.linux
and append single
or init=/bin/bash
at the end of this line. This will boot the system into single-user mode or a bash shell.For example:
linux /boot/vmlinuz-5.10.0-29-amd64 root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro single
Ctrl
+ X
or F10
to boot with these parameters.Once you are in single-user mode or a bash shell, you can fix the permissions and ownership issues.
mount -o remount,rw /
ls -ld /home/casaos
chown casaos:casaos /home/casaos
chmod 755 /home/casaos
chsh -s /bin/bash casaos
/etc/passwd
: Ensure the home directory and shell for the casaos
user are correctly set in /etc/passwd
.grep casaos /etc/passwd
The output should be something like:
casaos:x:1001:1001::/home/casaos:/bin/bash
After making these changes, reboot the server normally:
reboot
After the server reboots, try to SSH into the casaos
user account again. The permissions and ownership should now be correct, and you should be able to log in successfully.