1

I have recently been granted access to a Linux server where I transferred some data. Now, for some reason, when I use WinSCP or any other program to connect to the server, instead of logging in directly into my home directory (where I have my files and where I have write and read privileges) I am in /root. Needless to say, I cannot do anything in /root and I cannot find my home directory. Any advice??

  • /home/yourusername? – Nathan C Apr 9 '14 at 18:14
  • the /home directory is empty – g_puffo Apr 9 '14 at 18:18
  • Talk with the administrator of this server. – EEAA Apr 9 '14 at 18:47
2

echo $HOME should show what the system thinks is your home directory. That requires access to a terminal of course.

  • I will try this.. – g_puffo Apr 9 '14 at 18:18
  • This is probably the best way since the SCP protocol doesn't load environment variables. You'll need to use putty or some other SSH client to login for this. – Kyle Apr 9 '14 at 18:20
  • Unfortunately it doesn't return anything. Hmm, now that I look at it more carefully, as soon as I login into the server it writes the following message: "Could not chdir to home directory /home/myusername: No such file or directory /usr/bin/xauth: error in locking authority file /home/myusername/.Xauthority" . What does it mean? How can I still be allowed to login if my account doesn't exist anymore? – g_puffo Apr 9 '14 at 18:42
  • Your account exists, but the home directory is unavailable. It may be lost, not mounted, misconfigured, etc. You should get in touch with the server administrator. – zanerock Apr 9 '14 at 18:48
  • I understand: thanks a lot for everybody's help. I will do just that. – g_puffo Apr 9 '14 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.