LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   create user on SUSE8 (https://www.linuxquestions.org/questions/linux-newbie-8/create-user-on-suse8-210291/)

wally2004 07-27-2004 02:20 PM

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

Thewyzewun 07-27-2004 02:24 PM

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!

rshaw 07-27-2004 02:28 PM

the -d flag specifies the home directory, it doesn't create it. you probably what '-k' or '-m'

wally2004 07-27-2004 02:43 PM

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]

rshaw 07-27-2004 02:46 PM

useradd -m <user name> -g <group> -d </home/whatever>

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


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