how we can create user in solaris?

Answers were Sorted based on User's Feedback



how we can create user in solaris?..

Answer / harish

we can use the command "useradd <username> to create new user.

Is This Answer Correct ?    14 Yes 2 No

how we can create user in solaris?..

Answer / manojkb

useradd -d /<home dir>/<username> -m <username>
ex: useradd -d /export/home/manoj -m manoj
other full commannd
useradd -u <uid> -g <gid> -d/<homedir> -m -s /bin/<<shell>>
<user name>

Is This Answer Correct ?    11 Yes 3 No

how we can create user in solaris?..

Answer / reddy

/usr/sbin/useradd -u uid -g gid -d /export/home/user -
s /sbin/sh -m user

Is This Answer Correct ?    10 Yes 7 No

how we can create user in solaris?..

Answer / veeresh sajjan

useradd -u [idno] -g [group id] -c [comment] -d
/export/home/user -m -s /sbin/sh user

Is This Answer Correct ?    3 Yes 1 No

how we can create user in solaris?..

Answer / s ramesh reddy

#useradd -u <uid> -g <gid> -d /expot/home/<username> -s /bin/sh -m <username>

Is This Answer Correct ?    2 Yes 1 No

how we can create user in solaris?..

Answer / ghanshyam baboo

useradd -md /export/home/<username> -u <uid> -g <gid> -s
<SHELL PATH> <username>

E.g.-

useradd -md /export/home/user1 -u 110 -g 115 -s /bin/bash user1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Solaris Commands Interview Questions

What are the packages for DNS?

4 Answers   IBM,


In a two node cluster how can you bring the one of the node in maintenance mode.

2 Answers   ITC Infotech,


How to set the time zion

3 Answers  


How to add a root dg?

3 Answers  


What are performance tool used

1 Answers  






How to find out the shared file system from server and client

1 Answers  


how to set the hostname or username at commamd promt ? where to set password length,max and min ?

3 Answers   Accenture, Tech Mahindra,


Pls explain the raids in solaris??

1 Answers   Bank Of America,


I have single NIC card and we have two ports can we configure as IPMP?

1 Answers   ITC Infotech,


what are the two conditions need to be taken before encapsulating the disk under the VxVm control(Veritas volume manager)

3 Answers   Systel,


Explain about Vxrecover?

3 Answers   EDS,


I have a TCP error how can fix this error?

3 Answers   Thomson Reuters,


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)