Adding User in Solaris Error.....

Hi all,

when I type this command

 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.

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

1 Like

Agreed. It's probably the automounter getting in the way.

1 Like

I will try tomorrow

/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)

# cd /export 
# ls 

therefore to add a user:

# 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

1 Like
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:

automount

Then df -k /home tells you this is a simple directory in the / filesystem.