Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Ubuntu server with ssh access. I've accidentally changed my home dir location to directory that doesn't exist. Now when I'm trying to login through ssh I saw following error:

Creating directory '/non/existing/directory'.
Unable to create and initialize directory '/non/existing/directory'.

How can I fix this

share|improve this question
What exactly did you do to change your home dir location? Do you have root access on that machine? – George Skoptsov Feb 28 '13 at 1:02
Do you have physical access to the machine? If all else fails, you could use single user mode. – cpast Feb 28 '13 at 1:11
@GeorgeSkoptsov, yes, I have sudo access. – dzhioev Feb 28 '13 at 5:05
Do you have a root password? Can you ssh as root into this machine? Does scp work, can you copy files onto the machine? – George Skoptsov Feb 28 '13 at 5:09
First suggestion is to change your home directory back to it's previous location. Otherwise, manually create the directory in question, including setting user and group ownership and permissions. – Yedric Aug 22 '13 at 14:36

You must log in to answer this question.

Browse other questions tagged .