'No directory /home/jon! Logging in with home="/"'
What?
This is on CentOS 6.5. I create the user using the Perl script adduser, which uses useradd as the backend. However, when I try to login, it says the home directory doesn't exist. If I do an "ls -lah" on /home, it's right there. Funny thing is, if I login as root and then "su - jon", I drop right into the correct home directory with no complaints.
ls -lah of /home...
drwxrwx---. 4 jon jon 4.0K Oct 19 19:10 jon
Relevant entry of /etc/passwd...
jon:x:500:500::/home/jon:/bin/bash
I should add that the home directory is on a different partition (ext4). If I have the home directory on the root partition (/), the problem vanishes. Could it be an SELinux problem? I notice that it's enforcing.
Any ideas? This is really bugging me. I've never seen this before.
|