2 ways to create a user in Solaris which is using command line and admintool application graphical interface.
• Adduser command line
– Simple way (this will automatically set the value for the user):
# useradd newuser
– Details way (manually specify the value for the user):
useradd -d /export/home/newuser g xxx -m -s /bin/sh -c "New User" newuser
Additional note:
• -c: Specify a comment for the account.
• -d: Specify the user home directory.
• -g: Specify the main group.
• -m: Specify that the home directory must be created
• -s: Specify the path of the shell to use
• -u: Specify the userid
• Admintool application
At the desktop, right click to open the terminal session. Login as root and execute admintool to launch the application.