Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.