LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-04-2006, 06:38 AM   #1
amirzkria
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 1
Question useradd: cannot create directory /home/


I am login as root and when I want to add new user aymna, the message came out
"useradd: cannot create directory /home/ayman"
what can i do , I am using RHEL 3.

Amir Mohammed Abdalla
Network administrator
00249912616158
E.mail: amirzkria2@yahoo.com

Last edited by amirzkria; 02-04-2006 at 06:40 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-04-2006, 06:40 AM   #2
amirzkria
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 1
I am login as root and when I want to add new user aymna, the message came out
"useradd: cannot create directory /home/ayman"
what can i do , I am using RHEL 3.

Amir Mohammed Abdalla
Network administrator
00249912616158
E.mail: amirzkria2@yahoo.com
 
Old 02-05-2006, 08:37 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Nor really a Networking problem..

Moved to RedHat Forum..

Last edited by peter_robb; 02-05-2006 at 08:38 AM.
 
Old 02-06-2006, 01:32 AM   #4
amirzkria
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 1
Hi everyone

"useradd: cannot create directory /home/ayman" solve

the reason was rhe autofs deamon was mount on the /home directory and this was hide my /home directory, when i stop the autofs service and mount -a the /home directory was appeare and every think work fine.

best regares


Amir Mohammed Abdalla
Network administrator
00249912616158
E.mail: amirzkria2@yahoo.com
 
2 members found this post helpful.
Old 05-17-2011, 02:52 PM   #5
nek
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Post

CentOS 5.5
I had a similar issue where the home directory could not be created when creating new users. In my case it was a box where I was playing with nfs mounts at an earlier point in time and due to that, issues were showing up now with creating users.

In my case, I had old crap in these files pointing to nfs mounts:

/etc/auto.master
/etc/auto.home


stop and start autofs service

/etc/init.d
service autofs stop | start


mount -a
 
Old 08-07-2014, 09:11 AM   #6
LouKYHusker
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Talking Possible Fix

I would check your /etc/nsswitch.conf file. Most likely you have a setting that is causing your issue with creating the home directory. If the setting are not correct, it can prevent you from creating a home directory for your user. Here is a functional nsswitch.conf that is using Winbind to authenticate:

passwd: files winbind
shadow: files winbind
group: files winbind

hosts: files dns winbind

bootparams: files

ethers: files
netmasks: files winbind
networks: files winbind
protocols: files winbind
rpc: files winbind
services: files winbind

netgroup: files

publickey: files winbind

automount: files winbind
aliases: files winbind
 
  


Reply



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
useradd does not create a home dir leupi Ubuntu 3 12-12-2005 07:35 PM
home directory auto create problem bobthehorrible Linux - Networking 2 10-13-2005 09:54 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
useradd: cannot create directory (is this normal) Donboy Linux - Software 3 01-08-2004 02:03 AM
adding a new user doesn't create a home directory abrakadabra Linux - General 6 08-09-2002 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:23 PM.

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
Open Source Consulting | Domain Registration