Could not chdir to home directory
StudyRoom/Linux_Server
after creating lxc container, I wasn’t able to connect to it as a simple user. Also couldn’t change to simple user using “su”.
All I got was an error:
Could not chdir to home directory /home/nsc: Permission denied /bin/bash: Permission denied Connection to 192.168.1.13 closed.
All permissions of home directory were correct, as to be 100% sure, deleted user and created again. Still the same problem.
The problem was / permissions.
It was 700, so simple user couldn’t change to any directory.
Small fix to make it working (with root user)
chmod 755 /
And that’s it, user is working!!!
아,,, 막내 탈출한 늠... 사고치는 바람에 힘들었다...
'StudyRoom > Linux_Server' 카테고리의 다른 글
latin1 로 저장된 db 를 euckr 또는 utf8로 변환하는 방법 (0) | 2012.08.29 |
---|---|
DSS Darwin Streaming Server CentOS Installer (0) | 2012.03.27 |
LINUX 32비트 64비트 확인 방법 (0) | 2011.09.06 |
Linux System Monitoring Tools Every SysAdmin Should Know (0) | 2011.09.06 |
VSFTP 설정 (0) | 2011.09.06 |