Results 1 to 8 of 8
CentOS 5.5
I am trying to add new users, when I use the command:
# useradd newuser
I get:
useradd: cannot create directory /home/users/newuser
I went to my /etc/skel and ...
- 04-05-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 87
[SOLVED] Problems with useradd
CentOS 5.5
I am trying to add new users, when I use the command:
# useradd newuser
I get:
useradd: cannot create directory /home/users/newuser
I went to my /etc/skel and when I use the command ls it displays:
home
and when I go into /etc/skel/home I have the two directories that I created.
I am logged in as root, and when I ls cd / it shows /home, when I cd into /home everything looks normal.
How do I get this error to stop so I can add new users?
- 04-06-2011 #2
does /home/users exist?
also, I think /etc/skel is supposed to map to a home directory directly. For instance, mine has
[meton@server1 ~]$ ls -a /etc/skel
. .. .bash_logout .bash_profile .bashrc .gnome2 .mozilla
you should have files directly in there, not in /etc/skel/homeNew to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4
- 04-06-2011 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 13
Can you paste the output of the below command.
useradd -D
- 04-07-2011 #4Take risks: if you win, you will be happy; if you lose, you will be wise.
New Users : Read This First
- 04-08-2011 #5Just Joined!
- Join Date
- Apr 2011
- Posts
- 2
I remember confusion between "useradd" and "adduser". Maby it's that..
- 04-08-2011 #6
That wouldn't be it. Red Hat/Fedora distros use useradd.
Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 04-08-2011 #7Just Joined!
- Join Date
- Jan 2011
- Posts
- 87
I'm not quite sure what I was doing wrong, but it's working for me now.
must have been one of those id10t errors I hear so much about.
- 04-08-2011 #8Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.



