LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-19-2014, 04:29 PM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
'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.
 
Old 10-19-2014, 06:15 PM   #2
simrika
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, 05:28 AM   #3
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
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.
 
  


Reply


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 04: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 06:28 PM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 10:26 PM
permissions of my /home/"user" directory error darkleaf Linux - Software 10 09-26-2004 02:08 AM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 01:47 PM


All times are GMT -5. The time now is 07:42 AM.

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