Create New User in Solaris 10


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Create New User in Solaris 10
# 1  
Old 01-01-2007
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
# 2  
Old 01-01-2007
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.
# 3  
Old 01-01-2007
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
Yes, is must be /export/home/heru Smilie

I have created folder heru in /export/home , and when i executed that command
error message some like "command error "
thank's for replay
# 5  
Old 01-05-2007
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
This User Gave Thanks to rowan_sen For This Post:
# 6  
Old 01-05-2007
try this it should work.

useradd -d /export/home/user -m -s /bin/ksh -g javap user5
# 7  
Old 01-06-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find if a User exist if not create user

What I'm trying to do is write a script in Perl to find a user and if that user exist it would print "User Exist, Pls Try Again". If The user doesn't exist I'm able to create a user with a password. Any suggestions? (3 Replies)
Discussion started by: GoBoyGo
3 Replies

2. Emergency UNIX and Linux Support

How to create user?

Hi, Quick question. How to create user in Unix after they login at the first time then they need to change password. Thanks in Advance :):) (5 Replies)
Discussion started by: justbow
5 Replies

3. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

4. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

5. Solaris

create user with RWX access to a specific directory in Solaris 10

I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that? Thanks (5 Replies)
Discussion started by: gsander
5 Replies

6. Solaris

how to create an user

hi can anyone help me out to create an user to access specific folder only. (5 Replies)
Discussion started by: aemunathan
5 Replies

7. HP-UX

How to create a user in HP-UX

HI Guys, Can you help me creating a user account in a HP-UX server (3 Replies)
Discussion started by: Harikrishna
3 Replies

8. HP-UX

create user

I need to create new user from the root.which command can i used ? (2 Replies)
Discussion started by: magasem
2 Replies

9. UNIX for Dummies Questions & Answers

I create user but i cant login the user i created.

I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just... (5 Replies)
Discussion started by: jerome
5 Replies

10. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
Login or Register to Ask a Question