The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: create new user in solaris 10
d16man
Newbie
Rank: 1



UID 104
Digest Posts 0
Credits 0
Posts 52
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
create new user in solaris 10



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,


Top
aznjason
Newbie
Rank: 1



UID 63
Digest Posts 0
Credits 0
Posts 45
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
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.
Top
dpjd
Newbie
Rank: 1



UID 123
Digest Posts 0
Credits 0
Posts 10
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
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 "
Top
bdumitru
Newbie
Rank: 1



UID 67
Digest Posts 0
Credits 0
Posts 20
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
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
Top
livingingermany
Newbie
Rank: 1



UID 237
Digest Posts 0
Credits 0
Posts 33
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
try this it should work.

useradd -d /export/home/user -m -s /bin/ksh -g javap user5
Top
GTL
Newbie
Rank: 1



UID 166
Digest Posts 0
Credits 0
Posts 13
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
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,
Top
DannyCrane
Newbie
Rank: 1



UID 105
Digest Posts 0
Credits 0
Posts 19
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:58 AM  Profile | P.M. 
kill utmpd, flush the following files in /var/adm: utmp, utmpx, wtpm & wtmpx and restart utmpd.
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:24 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005763 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP