useradd not creating home directory
I have searched google, these threads and read the useradd man page, but I am still having issues with creating a user and getting their home directory created at the same time.
This is on Solaris 10 64 bit SPARC. Command I am running as root Code:
useradd -m -d /home/user001 -s /bin/bash user001 Code:
UX: useradd: ERROR: unable to create the home directory: Operation not applicable Code:
chmod: WARNING: can't change /home I am in no way a Solaris expert, but I am fairly competent in CentOS and Fedora... where the useradd command has worked for me in the past. |
Hi
I believe all you need is: useradd -m -s /bin/bash username you can also add the -G option if you know the groups you want for this user... Good luck. |
Nope.. that gives me the same error about not being able to create the users directory.. Operation not applicable...
I think it has to do with the /home directory not being writeable, and me not being able to change it, even as root. |
Quote:
What permissions do you have on /home? |
btw,
1. could you post the exact output from your shell? 2. have you tried doing the same with adduser? |
Is /home a local directory on the computer, or is it a network mounted directory? If it's a network mounted directory you need root permissions on the server where the home directory resist.
|
In Solaris you cannot use /home. It is used by automounter. Just use /export/home/<username> and you are fine...
|
Yeah... that seems to be what resolves this issue. I didnt know that i couldnt use /home Solaris. using /export/home is working.
|
All times are GMT -5. The time now is 11:43 PM. |