| Unix Content | Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| Sorry for the newbie question. I have created a user on a Solaris 9 box. When they log in they get the error No directory! Logging in with home=/. There is no user directory for the user. I have run useradd -D and the default home directory is still /home. I have tried running useradd -d /home Nick. Still no user directory is created. |
|
#2
|
| N1ch0la5 wrote: > Sorry for the newbie question. > I have created a user on a Solaris 9 box. When they log in they get > the error > > No directory! Logging in with home=/. > > There is no user directory for the user. > > I have run useradd -D and the default home directory is still /home. > > I have tried running useradd -d /home Nick. > > Still no user directory is created. It probably gave you an error message (which you ignored?). The /home directory is owned by automounter in default Sol9 installation. You will not be able to do anything until you stop automountd or change the location for the home dir creation (eg. to /export/home). |
|
#3
|
| >> On 29 Jun 2006 04:40:53 -0700, >> "N1ch0la5" > Sorry for the newbie question. I have created a user on > a Solaris 9 box. When they log in they get the error > No directory! Logging in with home=/. > There is no user directory for the user. > I have run useradd -D and the default home directory is > still /home. > I have tried running useradd -d /home Nick. > Still no user directory is created. .... because you didn't tell useradd to create one :-) $ man useradd .... -m Create the new user's home directory if it does not already exist. ... hth t |
|
#4
|
| Words to the wise, Marcin Dobrucki > It probably gave you an error message (which you ignored?). The >/home directory is owned by automounter in default Sol9 installation. >You will not be able to do anything until you stop automountd or change >the location for the home dir creation (eg. to /export/home). What about doing it manually? i.e. mkdir /export/home/$user, chown $user /export/home/$user, edit /etc/passwd and enter /export/home/$user for the entry $user? Can this lead to problems (assuming /export/home is a separate fs with enough space)? -- Claus Dragon =(UDIC)= d++ e++ T-- K1!2!3!456!7!S a26 "Coffee is a mocker. So, I am going to mock." - Me, lately. |
|
#5
|
| On Thu, 29 Jun 2006, Claus Dragon wrote: > What about doing it manually? i.e. mkdir /export/home/$user, chown > $user /export/home/$user, edit /etc/passwd and enter > /export/home/$user for the entry $user? You could do that, but I'd personally skip that last step and set up th eautomounter. > Can this lead to problems (assuming /export/home is a separate fs with > enough space)? None that I can think of. -- Rich Teer, SCNA, SCSA, OpenSolaris CAB member President, Rite Online Inc. Voice: +1 (250) 979-1638 URL: http://www.rite-group.com/rich |
|
#6
|
| Words to the wise, Rich Teer >On Thu, 29 Jun 2006, Claus Dragon wrote: > >> What about doing it manually? i.e. mkdir /export/home/$user, chown >> $user /export/home/$user, edit /etc/passwd and enter >> /export/home/$user for the entry $user? > >You could do that, but I'd personally skip that last step and set up >th eautomounter. > >> Can this lead to problems (assuming /export/home is a separate fs with >> enough space)? > >None that I can think of. Good ![]() That is what I do (not on productive machines), being too lazy to learn all the useradd options. -- Claus Dragon =(UDIC)= d++ e++ T-- K1!2!3!456!7!S a26 "Coffee is a mocker. So, I am going to mock." - Me, lately. |