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.

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 stackoverflow.com Nov 22 '12 at 11:35

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

add comment

1 Answer

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
add comment

Your Answer

 
discard

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.