Adding User in Solaris Error.....


 
Thread Tools Search this Thread
Operating Systems Solaris Adding User in Solaris Error.....
# 1  
Old 02-01-2013
RedHat Adding User in Solaris Error.....

Hi all,

when I type this command
Code:
 useradd -d /home/ram89 -m ram89


it gives an error unable to create home directory.

Why so ?

How to create user in Solaris?

The perfect method?

Please guide me.

Thanks in advance

Manali.
# 2  
Old 02-01-2013
Hi,
you cannot use /home in solaris. It is autmounter is using /home. try /export/home. You can also use -u, -c, -d, -s and, -m. do man useradd and, should list all the options.

good luck
This User Gave Thanks to afadaghi For This Post:
# 3  
Old 02-01-2013
Agreed. It's probably the automounter getting in the way.

Solaris 10 adduser
This User Gave Thanks to hicksd8 For This Post:
# 4  
Old 02-01-2013
I will try tomorrow
# 5  
Old 02-01-2013
/home is not allowed because there is no director called /home

users home directory is found in /export/home. That directory is created at time of installation. Go to export and you will see home (learning purpose)
Code:
# cd /export 
# ls

therefore to add a user:
Code:
# useradd -d /export/home/ram89 -m  ram89

( you can give the user a shell and other stuffs, but lets stick to the basics)

Do some study you will understand it better.

Good luck

Last edited by Scott; 02-02-2013 at 11:36 AM.. Reason: Please use code tags
This User Gave Thanks to cjashu For This Post:
# 6  
Old 02-05-2013
Code:
df -k /home

tells you that it is used by automounter map "auto_home".
If you'll never use NIS and NIS automounter maps,
you can #disable the /home line in /etc/auto_master,
and update automounter:
Code:
automount

Then df -k /home tells you this is a simple directory in the / filesystem.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Adding user with Sudo permission in solaris 9

How can I add user with Sudo permission in solaris 9 ? I'm new in Solaris (2 Replies)
Discussion started by: ahmednoaman
2 Replies

2. Solaris

Howto solve this disk error in Solaris in single user mode

Hi all, OS is Solaros 10 Sparc While doing Netbackup upgradation to 7.5 , the server was asked to reboot. But then it came up in single user mode, and after I typed format command it showed some disk error. bash-3.00# format Searching for disks...WARNING:... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

3. 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

4. Solaris

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? (9 Replies)
Discussion started by: naw_deepak
9 Replies

5. 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

6. Solaris

Error while adding a new user using Solaris Management Console.

Hi All, I am adding a new user by using Solaris Manamement Console after Remotely Access through Xmanager 1.3.9. But after completing all steps its through an error as follows. The Actual Error Reported was : The management Domain file :/abc/abc do not exist or can not be managed on abc. ... (0 Replies)
Discussion started by: response_manu
0 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Adding a user to a group

Now, its been a while since i done this but I had to add a user to a group. I did that by using the usermod command and now when I superuser to the user's account and issue a "id", i get the desired gid. i mean, output of id indicated the user is assigned to the group i want him to be in. ... (5 Replies)
Discussion started by: TRUEST
5 Replies
Login or Register to Ask a Question