How to relogin to root after killall -u root?

0

I had done a silly thing and pressed enter on the command:

$ killall -u root

And now we can't log in. The last command ran was:

ws4-clarind:~ # killall -u root
Connection to ws4-clarind.esc.rzg.mpg.de closed by remote host.
Connection to ws4-clarind.esc.rzg.mpg.de closed.
xxx@con99:~> ssh root@ws4-clarind.esc.rzg.mpg.de
ssh: connect to host ws4-clarind.esc.rzg.mpg.de port 22: Connection refused

How could i restore root's login to the server?

alvas

Posted 2014-01-30T14:34:04.820

Reputation: 95

I'd say a powerdown and backup is your only option? Never been in that situation before. Is the console still active? if so, login using that and do a clean shutodwn / reboot. – FreudianSlip – 2014-01-30T14:38:45.840

it's a vm in a vm... – alvas – 2014-01-30T14:39:32.467

1Ok, can you get to the console through the VM manager? If you can, the login process should be on a respawn - although if cron has died I'm not sure what the state will be. If you can login, /etc/init.d/network restart && /etc/init.d/sshd restart might work. – FreudianSlip – 2014-01-30T14:52:56.683

Answers

3

You can only restart the server at this point, as a ton of processes that are autostarted on startup and that are integral to the function of such a server were killed, including (possibly) init, the parent of all processes. You're going to have to restart the server.

ecube

Posted 2014-01-30T14:34:04.820

Reputation: 558