Create New User in Solaris 10 | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Create New User in Solaris 10

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-01-2007
heru_90's Avatar
heru_90 heru_90 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 27 June 2011, 12:15 PM EDT
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Create New User in Solaris 10

Dear All,

I think this stupid question, but I was search in this forum and I not yet have get specific answer for my problem.
I just installed Sun Solaris 10 in my box, and I want add new user, but there is can't work , I try this command

useradd -u 1002 -g 102 -d /home/export/heru -s /bin/sh

but thereis not work, and how to create password for new user.

Thank's

Regards,

Heru
Sponsored Links
    #2  
Old 01-01-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 10 October 2013, 8:46 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
Can you tell us exactly what error you are getting? And try this too:

Code:
useradd -u 1002 -g 102 -m -d /home/export/heru -s /bin/sh

The -m is to create the directory if it doesn't already exist.
And to set the password, you have to use the passwd command:
passwd username

Make sure you run both the commands as root.
Sponsored Links
    #3  
Old 01-01-2007
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 11 Times in 11 Posts
Quote:
Originally Posted by heru_90
/home/export/heru
I going to go out on a limb and suggest that this was supposed to be /export/home, not /home/export and that may have been part of the problem also.
    #4  
Old 01-01-2007
heru_90's Avatar
heru_90 heru_90 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 27 June 2011, 12:15 PM EDT
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, is must be /export/home/heru

I have created folder heru in /export/home , and when i executed that command
error message some like "command error "
thank's for replay
Sponsored Links
    #5  
Old 01-05-2007
rowan_sen rowan_sen is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 23 April 2009, 9:36 AM EDT
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by heru_90
Dear All,

... I try this command

useradd -u 1002 -g 102 -d /home/export/heru -s /bin/sh

but thereis not work, and how to create password for new user.
Heru,
You haven't specified the username. Add the username at the end of the command, eg:
useradd -u 1002 -g 102 -d /home/export/heru -s /bin/sh heru
The Following User Says Thank You to rowan_sen For This Useful Post:
illgetit (07-14-2011)
Sponsored Links
    #6  
Old 01-05-2007
Krrishv Krrishv is offline
Registered User
 
Join Date: Dec 2006
Last Activity: 20 December 2013, 6:43 PM EST
Location: CA,United States
Posts: 200
Thanks: 1
Thanked 0 Times in 0 Posts
try this it should work.

useradd -d /export/home/user -m -s /bin/ksh -g javap user5
Sponsored Links
    #7  
Old 01-06-2007
heru_90's Avatar
heru_90 heru_90 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 27 June 2011, 12:15 PM EDT
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Thank's Krrishv,

that's work, and now I have 1 new user, but when I try to login from terminal that's not work, I have message :

No utmpx entry, you must exec "login" from the lowest level "shell"

and same when I try to login with Desktop.

what must be setting for that ?

Thank you

Regards,

Heru
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Create script to add user and create directory pbhound Homework & Coursework Questions 12 04-01-2011 09:02 AM
Create New User with the same group nd privileges of the other user fspalero Ubuntu 0 03-18-2011 10:56 AM
create user with RWX access to a specific directory in Solaris 10 gsander Solaris 5 08-06-2009 12:36 PM
I create user but i cant login the user i created. jerome UNIX for Dummies Questions & Answers 5 06-09-2006 05:08 PM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 12:18 PM



All times are GMT -4. The time now is 11:55 AM.