adding a user

I am trying to add a new user so I can do some software testing.

I am using

useradd -d /home/test -s /bin/bash test

I can log in using ssh however I can not login using the X GUI. I see the problem seems to be that there is no home directory and I can not make one. I am doing all this as root. What do I do?

[334 byte] By [trey5498a] at [2007-11-27 7:12:43]
# 1
-m tells useradd to create the directory. alan
alan.paea at 2007-7-12 19:03:45 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
If you have autofs running then /home/ directory is for automounting user home directories. Make you user under /export/home/ as follows:mkdir /export/homeuseradd -m -d /export/home/<user> <user>
Stuart_Flishera at 2007-7-12 19:03:45 > top of Java-index,Solaris Operating System,Solaris 10 Features...