Syntax for useradd commad

Answers were Sorted based on User's Feedback



Syntax for useradd commad..

Answer / sbrahman75

# useradd –u 101 –g other –d /export/home/ragu –m –s
/bin/ksh –c “revenue” ragu

Is This Answer Correct ?    2 Yes 0 No

Syntax for useradd commad..

Answer / prakash.m

useradd -u uid -g gid -d /export/home/user folder name -m -
s /bin/type of shell -c "comment" username

Is This Answer Correct ?    1 Yes 0 No

Syntax for useradd commad..

Answer / bikash giri

useradd -u uid -g Primary.gig -G secondary.gid -d
/export/home/user folder name -m -s /bin/type of shell -c
"comment" username

Is This Answer Correct ?    1 Yes 0 No

Syntax for useradd commad..

Answer / mohammed mukram

useradd -m -d /export/home/username username

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Solaris Commands Interview Questions

In solaris while patching why should we break the mirroring?

1 Answers   Wipro,


Hi We have upgraded our sun machine from solaris 9 to solaris 10. Before upgradation the date command output(Solaris 9) Wed Oct 13 09:45:21 IST 2010 But after upgradation the output for date is as below(solaris 10). Wednesday, October 13, 2010 9:46:14 AM IST Looks like I need to change LC_TIME=C. can you please help me how to change it for permanently

0 Answers   IBM, Wipro,


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

3 Answers   Accenture, Tech Mahindra,


Were the vcs logs will be

2 Answers  


1.Password less authentication in linux & Solaris

1 Answers   TCS,


solaris network daemon

6 Answers   HP,


How will you restart the inetd process?

2 Answers  


Write the steps involved in creating and executing a program to implement the “case” command.

0 Answers  


How to check the communication between 2 nodes?

5 Answers  


How to check the sleeping process in Solaris.

10 Answers   Chase, JPMorgan Chase,


How to Freeze svcgroup, (disable onl. & offl.)

2 Answers  


Procedure for Firmware upgrade

1 Answers  


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)