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 |
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! |
the -d flag specifies the home directory, it doesn't create it. you probably what '-k' or '-m'
|
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] |
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. |