Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-04-2006, 06:38 AM
|
#1
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Rep:
|
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.
|
02-04-2006, 06:40 AM
|
#2
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Original Poster
Rep:
|
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
|
|
|
02-05-2006, 08:37 AM
|
#3
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Nor really a Networking problem..
Moved to RedHat Forum..
Last edited by peter_robb; 02-05-2006 at 08:38 AM.
|
|
|
02-06-2006, 01:32 AM
|
#4
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Original Poster
Rep:
|
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.
|
05-17-2011, 02:52 PM
|
#5
|
LQ Newbie
Registered: Dec 2006
Posts: 1
Rep:
|
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
|
|
|
08-07-2014, 09:11 AM
|
#6
|
LQ Newbie
Registered: Aug 2014
Posts: 1
Rep: 
|
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
|
|
|
All times are GMT -5. The time now is 11:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|