Adding user


 
Thread Tools Search this Thread
Operating Systems Solaris Adding user
# 1  
Old 10-15-2008
Adding user

Hello All,

New to Solaris, I added a new user by cmd " useradd -d /export/home/username -m username " but wondered when I tried to login with this new username, It doesn't automatically redirect to the user's home folder. Can anyone suggest about this?
# 2  
Old 10-15-2008
does the directory "username" exist?
# 3  
Old 10-15-2008
Yes, the directory is being created after running useradd command.
# 4  
Old 10-15-2008
Got the solution. I was not running " su - user " to login . I was just running " su user ". By the way, thanks for reply.
# 5  
Old 10-15-2008
It should. What is your current directory after login as username ?

Any error message ? Can you check the home directory has been correctly created ?

Code:
ls -la /export/home/username

Edit: Hmm, I was too slow ...
# 6  
Old 10-15-2008
After logging with " su username " it was redirecting to "/ ".
Other question : how to add a hostname?
when I run command " hostname " , got reply
unknown

I think no name was given to this system. I tried to edit the file /etc/hosts, but it is showing read only file. Any idea?

Hope, you will help .
# 7  
Old 10-16-2008
What's the result for
Code:
#more /etc/hostname.[NIC]

If you cannot perform the command so there's no file called /etc/hostname.[NIC]

You can create the file using vi

Code:
#vi /etc/hostname.[NIC]

enter the desired hostname
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding a new user to Unix

Hi, I have my new Unix machine setup. Its just have one user root. I need to create a new user and add it to a group. I want this user to have privileges as root(run all command). I know i need to use useradd command for this.My question is: 1) To which group i should add my user? DO i need... (2 Replies)
Discussion started by: kailash19
2 Replies

2. Solaris

Adding a user twice to Solaris OS

is it possible to add a user twice to solaris server with the same id? i have been added twice in the past week and that is messing up one application that i am using which authenticate against the os. (10 Replies)
Discussion started by: basel
10 Replies

3. Shell Programming and Scripting

Adding a user to a group

Hello guys!! If a user is already created on a server, how do you add them to another group? The useradd command? If so then would that duplicate the user account on the server? Thanks Bigben (4 Replies)
Discussion started by: bigben1220
4 Replies

4. Solaris

Adding User to group

Hi all, I have a existing user user1 its group id dba i have created a new user named: uta and added to group dba my task for creating uta ( to ftp solaris server from /oracle/pcmia/dry1 & oracle/pcmia/dry2 and get some rdf ( database patch) and saved in one windows folder named d:\patch... (2 Replies)
Discussion started by: saurabh84g
2 Replies

5. Solaris

help adding a new user/password

I just installed Solaris 10 yesterday and I need to create a new username and password. I'm new to the system and I have yet to learn my way around. I appreciate all help and thank you in advance. (5 Replies)
Discussion started by: bones
5 Replies

6. SCO

adding a user

In SCO Unix, where does useradd or adding a user through scoadmin (gui) pick the initial default .profile (login profile) that is put in the users home folder? In Solaris its in the /etc/skel/.profile. I would like to replace it with a custom .profile; so that it's picked automatically when... (1 Reply)
Discussion started by: othman
1 Replies

7. UNIX for Dummies Questions & Answers

adding long user name

hello everybody: I need to add a 10 character user name to my tru64 system, is there any work around I can use for that. thanks alot (1 Reply)
Discussion started by: aladdin
1 Replies

8. UNIX for Dummies Questions & Answers

Adding user to groups

How do I add a user to a group? And how do I determine the list of groups to add a user? Solaris 10 newbie (1 Reply)
Discussion started by: peteythapitbull
1 Replies

9. Solaris

adding a user in single user mode

Just got a solaris 8 blade 150 box with no users, only a root account. no one seems to know the password. I'd like to add one user. So I booted into single user mode via cdrom and added one. Can't seem to login using the new account, though. Here's what I'm using: # useradd -d /tmp/"user" -m... (1 Reply)
Discussion started by: ECBROWN
1 Replies

10. UNIX for Dummies Questions & Answers

NIS + adding a new user

I'm setting up NIS+ on Solaris 8 for Intel. None of the books I have explain how to add a new user in the NIS+ envoirnment. Can somebody explain this and are there any url's to get more info. I have populated the nis tables and can do an niscat of the passwd table. There is an nisgrpadd command... (2 Replies)
Discussion started by: txpjl
2 Replies
Login or Register to Ask a Question