Could not chdir to home directory /home/USER: Permission denied
We changed the home folder to /data/home/USER.
When I ssh to our centos server. It shows error “Could not chdir to home directory /home/USER: Permission denied”, however loggin ok. I must manually run cd ~ to go to the home directory.
Googled around, and found it is caused by selinux. The solution:
To disabling selinux or change it from enforcing to permissive.
change SELINUX from enforcing to permissive: SELINUX=permissive, then reboot.
For server could not be rebooted:
You can check if set correctly