![]() |
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. |
Quote:
If you want a 'perfect method', then read the man page on the useradd command. http://www.tech-recipes.com/rx/16/ad...ne-in-solaris/ |
Solaris 10
running as root /home exit |
By default /home directory has root:root as owner and do not has write permission for group or other.
Code:
# ls -ld /homeIn order to do it successfully, switch to root user. ---- ADD ---- Also if you are already running as root, then there's probability that /home isn't there or not mounted. Instead in Solaris 10, you will find /export/home mount point for home directories. So you can check and try like: Code:
~# ls -ld /home |
Quote:
AGAIN:
|
Solaris uses /export/home normally, while it is possible to use just /home there are other things you have to do first. Quick and dirty you can manually create the home dir and leave off the -m then change ownership after creation.
|
Quote:
Quote:
Quote:
Code:
# /home auto_homeCode:
svcadm restart autofs |
Thanks all,
It is solved now. |
| All times are GMT -5. The time now is 05:52 PM. |