Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-19-2014, 05:29 PM   #1
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
'No directory /home/jon! Logging in with home="/"'


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...

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.
Old 10-19-2014, 07:15 PM   #2
LQ Newbie
Registered: Oct 2014
Posts: 6

Rep: Reputation: 0
can you post the perl script that you used to create the user?
Old 10-21-2014, 06:28 AM   #3
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Original Poster
Rep: Reputation: 62
Not to worry, was SELinux. It apparently doesn't like the home directory being on a different partition. I really need to learn SELinux at some point.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 05:12 PM
[SOLVED] how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Linux - Newbie 4 10-04-2009 07:28 PM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 11:26 PM
permissions of my /home/"user" directory error darkleaf Linux - Software 10 09-26-2004 03:08 AM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 02:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration