- Log into Solaris as
root
- 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:
passwd username
- When prompted enter the new password twice.
The -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.
root
and you can log into your new account.
No comments:
Post a Comment