User Creation

What are ways we can create users in Solaris?

Questions by krishnakumar2012

Showing Answers 1 - 8 of 8 Answers


  • Mar 31st, 2009

1. Using "useradd" command.

2. Manually editing the /etc/passwd, /etc/group, create home directory manually, change perm to 700 to home dir, copy all file from /etc/skel to home dir and last change the password with passwd command.

  Was this answer useful?  Yes


  • May 4th, 2009

There are 3 ways to create users:
   1. Using  `useradd` command
   2. Using   `smuser` command
   3. Adding user by modifying the following files:
           a. '/etc/passwd'
           b. '/etc/groups'
    Then, Updating the '/etc/shadow' file by executing 'passwd user_name'  command.

Pardeep Kumar

  • Jul 12th, 2012

user add
#useradd -d /home/user1 -m /user1

  Was this answer useful?  Yes


  • Jul 18th, 2012

useradd -u 111 -g (group id) -d /home/user1 -m -s /bin/bash user1

  Was this answer useful?  Yes


  • Aug 31st, 2012

useradd -d /etc/exporthome/siva -m siva


  • Jan 22nd, 2013

useradd -d 111 -g 111 -d /export/home/Ram -m -s /bin/ksh -c "Regular user" Ram

  Was this answer useful?  Yes


  • Apr 12th, 2013

here Im using useradd -d /etc/export/home/shiva -m shiva, its creating a shiva user ok but im not able to assign the passwd that particular shiva user. Im getting error is permission denied, here Im login as a super user. this shiva user having the /bin /sh shell, only super user having the /bin/sh shell. i want the answer how to assign passwd to shiva user

  Was this answer useful?  Yes


  • Apr 25th, 2013

#useradd -d /export/home/shiva -m shiva
then add a user account in /export/home directory...
then see the status of password shiva user by using this command
#logins -x -l shiva
Output: shiva 100 other 1
LK 000000 -1 -1 -1
then assign the passwd to shiva user this command
#passwd shiva
re- try new passwd:xxxxx123
then chek passwd information
#logins -x -l shiva
Output: shiva 100 other 1
PS 000000 -1 -1 -1

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions