User login didn't work anymore ;-D
Sunday, March 9, 2008, 07:45 PM -
Linux
Yesterday I wanted to change the permissions of the 'known_host' file in my (users) ssh directory.
Something went wrong, don't ask me what, but it was impossible to login with any users (root worked fine).
When I tried to login with one user (e.g. testuser) I got the message:
Unable to cd to '/home/testuser/'
I tried directly from the console and also via root's 'su' command, but nothing did the right job. After investigating a long time for searching via google, I found only one way to get it working again.
The problem was my permission on the whole system were wrong. I don't know how, but I changed unawares all my permissions on my system to 644, also the permission of the root directory ('/').
I changed it back to 755 (also the root directory rights) and after that the login was possible again.
:-)