Solaris – Adding User and Home Directory

To create a user newuser with shell /usr/bin/bash and home directory /export/home/user:
# mkdir /export/home/user
# useradd -s /usr/bin/bash -d /export/home/newuser newuser
# chown newuser:staff /export/home/newuser
# passwd newuser
New Password:
Re-enter new Password:
passwd: password successfully changed for newuser

To create a role with roleadd. The usermod and rolemod commands modify the properties of users and roles, respectively:
# usermod -s /usr/bin/csh newuser

userdel and roledel delete users and roles.
groupadd, groupmod, and groupdel manage groups.