I've got a VirtualBox instance of Oracle Linux 7.2 which won't start because of Failed to start Login Service
. On the booting sequence the process hangs on this message and doesn't continue, so I can't even log in and execute systemctl status systemd-logind.service
.
The probable cause for this is, that I removed zsh while all my users (including root) have zsh set as the default shell (duh!). After that the machine started and I got to the login prompt, but I couldn't login since the shell couldn't be found. I then inserted a Live CD and went into /etc/passwd
to change the default shell for users to /bin/bash
. After this the login service won't start at all. Any ideas how to fix this?