Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

when I login to my foo user I will not be in my home directory

foo@server's password:
Last login: Thu Nov 22 10:55:57 2012 from node1
-bash-4.1$ cd ~
-bash-4.1$ cd ~

but when I login with other user like foo2 and then I su to the foo user I will be in my home directory

I check the permission too and all things look fine :(

share|improve this question

migrated from Nov 22 '12 at 11:35

This question came from our site for professional and enthusiast programmers.

You need to check what home directory is assigned to which user/login from /etc/passwd file. If that is all fine, check for permissions for home directory of that user. Change user's home directory permissions to 755 and then try.

share|improve this answer

Your Answer


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

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