Unable to create a ftp user only

Hi all

I am facing difficulties when using the useradd command.
when running useradd -u 60006 -g 100 -d /opt/xxx/yyy/z -m -s /bin/false ftpuser
It does create the user, but with a wrong home directory. It creates its home directory at /home/ftpuser
Please can you help?

Hi,

What OS are you using?

Also I would assume that for the command;

useradd -u 60006 -g 100 -d /opt/xxx/yyy/z -m -s /bin/false ftpuser

That the /opt/xxx/yyy directory exists.

I haven't used that format of the command before, I would tend to use;

useradd -c"Gecos Here" -u60006 -g100 -m -d/opt/xxx/yyy/z -s/bin/false ftpuser

Regards

Gull04

Hi

I am using solaris 10