After some months of not touching it I wanted to login to one of our virtual servers to update OpenSSL, because of the heartbleed thing. The server is running Debian 7, sudo is not installed.
I tried three ways:
ssh root@server, password is accepted and then:Could not chdir to home directory /home/root: No such file or directory Connection to server closed.Logging in as some other user and then
su - root.No directory, logging in with HOME=/Then I am back to my usual shell, not logged in as root.
Logging in as some other user and then
su root. This gives nothing, I am simply back to the usual prompt, still logged in as the other user and not root.
I have no chance to manually restart the server before monday. Is there anything I could try to do to get a root shell? May the server be compromised and how could I check that (without root access)? Thank you!
In all cases, when typing the wrong password the machine complains as usual.
/root does exist and /etc/passwd lists the correct directory. I have no idea why ssh believes differently.
This may be important: Checking $? after the unsuccessful su call gives me a 1, which is System or authentication failure according to the man page of su. How can I make it more verbose?
As requested below, the output of ssh -v:
Last login: Fri Apr 11 17:47:46 2014 from some_client
Could not chdir to home directory /home/root: No such file or directory
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to server closed.
Transferred: sent 3136, received 2448 bytes, in 0.0 seconds
Bytes per second: sent 299688.7, received 233940.7
debug1: Exit status 1
OpenSSLversion would be 0.X which does not have any issue. :) – Ramesh Apr 11 '14 at 15:55OpenSSL 1.0.1f– janoliver Apr 11 '14 at 15:56