|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
Quote:
|
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
Quote:
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
|
|||
|
|||
|
try this it should work.
useradd -d /export/home/user -m -s /bin/ksh -g javap user5 |
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
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 | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|