LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-27-2004, 02:20 PM   #1
wally2004
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
create user on SUSE8


Hi guys,
i have on a virtual machine a SUSE8 Enterprise server version.
After the installation i try to create an user with the command useradd.
This is the line command:

useradd pippo -d /home/pippo

After the creation of the user pippo i try to execute the command su
but i have this error:

su: warning: cannot change directory to /home/pippo: No such file or directory

Anyone can help me to resolve the problem????

I so that there is a graphic mode to do the same action but its interesting to know why the operative system doesn't create the home directory specified with the -d parameter
 
Old 07-27-2004, 02:24 PM   #2
Thewyzewun
Member
 
Registered: Sep 2003
Location: UK
Distribution: Xubuntu 15.10
Posts: 95

Rep: Reputation: 15
Re: create user on SUSE8

Try opening a new shell session and typing:
mkdir /home/pippo

(which makes the directory)

and then typing the command you tried before:
useradd pippo -d /home/pippo

Hope that helps!
 
Old 07-27-2004, 02:28 PM   #3
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
the -d flag specifies the home directory, it doesn't create it. you probably what '-k' or '-m'
 
Old 07-27-2004, 02:43 PM   #4
wally2004
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
user create

Sorry this is the new command line

useradd pippo -m /home/pippo

and this is the response of the system:
usage: useradd [ -u uid [-o]] [-g group] [-G group.....]
[ -d home] ]-s shell] [-c comment ] [-m [-k template]]
[ -f inactive ] [-e expire ] [-p passwd] [-r] name
useradd -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire]
 
Old 07-27-2004, 02:46 PM   #5
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
useradd -m <user name> -g <group> -d </home/whatever>

useradd -m test -g users -d /home/test
 
  


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
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
how to create user phoenix_fei Programming 1 11-26-2004 05:02 AM
Create First User krite Linux - Newbie 2 04-03-2004 01:38 AM
mounting ntfs partitions as a user in suse8.2 Anubis Linux - Software 6 08-31-2003 05:07 PM
how do i create a new user barkers Linux - Newbie 9 05-09-2002 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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