Welcome to the most active Linux Forum on the web.
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 01-20-2002, 08:08 PM   #1
LQ Newbie
Registered: Jan 2002
Location: Bonita Springs, FL
Distribution: Mandrake 8.1
Posts: 29

Rep: Reputation: 15
Unhappy Problem with useradd

I am very new to Linux and a little stupid I think. I am trying to setup Samba useing step by step directions from Here is my problem I typed "useradd -D". and it told me,


The group 501 is smb. When I type "useradd smbuser" it says "useradd:Cannot create directory /home/public/smbuser. I was working in root. What options should I use?

Last edited by wbheinkel; 01-20-2002 at 08:10 PM.
Old 01-21-2002, 01:06 AM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
do you have a folder named /home/public ?

mkdir /home/public

also you may want to try adduser
Old 01-21-2002, 06:56 AM   #3
LQ Newbie
Registered: Jan 2002
Location: Bonita Springs, FL
Distribution: Mandrake 8.1
Posts: 29

Original Poster
Rep: Reputation: 15
The way I read the directions I thought useradd made the dir. /home/public. I used you suggestion and used mkdir /home/public then useradd sbmuser. That worked fine thanks


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 problem ruben0076 Linux - Newbie 4 01-11-2005 12:28 PM
useradd problem efanning Linux - Newbie 1 07-29-2004 08:24 PM
useradd problem giovannym Linux - Newbie 4 06-23-2004 08:59 PM
useradd Problem deepakjena_2003 Linux - Newbie 2 01-19-2004 09:21 AM
useradd -p problem gizbon Linux - General 4 11-11-2002 04:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 PM.

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