Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-29-2011, 03:28 AM   #1
LQ Newbie
Registered: Oct 2011
Posts: 3

Rep: Reputation: Disabled
the useradd is not working

I am just a new have some paitence ..

I logged in as a super user but useradd is not working
i put in prompt the command

useradd -c 'mohamed ahmed' ahmed

the answer is can not find directory
please advice how to get about this as this is my firest challenge in oss.


Old 10-29-2011, 03:43 AM   #2
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
useradd -c 'mohamed ahmed' ahmed -m
-m, --create-home
Create the userīs home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the -k option) will be copied to the home directory.
man useradd
will give you all the different options etc.


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
Useradd not working ifeatu Linux - Newbie 9 10-16-2008 10:45 AM
Useradd - not working as expected Paean Solaris / OpenSolaris 13 01-31-2006 05:06 PM
useradd not working haora Linux - Newbie 2 04-19-2005 08:37 AM
'useradd' not working. reesee Linux - Newbie 1 02-28-2004 01:05 PM
Useradd not working HaZaRdOuS Linux From Scratch 2 11-25-2003 11:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 AM.

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