- Log into Solaris as
- Type the following command to add a user:
useradd -d /export/home/username -m -s /usr/bin/bash -c "User Full Name" username
- To set the password type:
- When prompted enter the new password twice.
-d option specifies where to create the users directory. The
-m option actually creates the directory if it does not exist. The
-s option sets your default command line shell.
-c sets the users full name. The new username is the last option on the command line. This sets up the account, but does not set the password.
rootand you can log into your new account.