Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Search Forums:



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.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-01-2007
heru_90's Avatar
Registered User
 

Join Date: Jun 2006
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
AFK
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,351
Thanks: 0
Thanked 2 Times in 2 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
Location: Ireland
Posts: 4,466
Thanks: 0
Thanked 6 Times in 6 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
Registered User
 

Join Date: Jun 2006
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
Registered User
 

Join Date: Sep 2006
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
Registered User
 

Join Date: Dec 2006
Location: CA,United States
Posts: 198
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
Registered User
 

Join Date: Jun 2006
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
how to create an user aemunathan Solaris 5 05-28-2008 03:59 PM
create user magasem HP-UX 2 10-09-2006 08:50 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
Need to create a user... New_Guru UNIX Desktop for Dummies Questions & Answers 5 06-13-2005 11:36 PM



All times are GMT -4. The time now is 03:09 AM.