Solaris: Adding a new user

solaris.jpg User additions are no different in Solaris. The useradd command is what’s used to do the addition (must be done as the root user).
The -g flag defines which group you’re adding the user into, and the -d flag defines the user’s home directory. Obviously the last part is the username that you’re trying to add. Also, always remember to use the -m flag. This flag creates the user’s initial directory structure from the skeleton directory, and gives it the right permissions. If you forget to do this, you’ll have to do it manually.
# useradd -g users -m -d /home/export/username username