Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't create home directories

Hi guys,


I've been trying to set up a OS X Lion Server on a new Mac Mini for the past few days now. I've set up DNS (I think at least - I can access the server from outside my network with an external domain name I've pointed at my static IP). The main issue that's preventing me from moving forward is setting up users.


I should probably state that I set up my DNS incorrectly the first time, and used the external domain as my hostname. However, as my router does not support NAT loopback, I had to use the internal, non changing IP address instead. Hopefully you're still with me. I tried to start afresh at this point but realised it was actually quite a difficult process - I found out you had to hold down Command + R to enter recovery mode, but I could only reinstall Lion and not Lion Server - and Lion Server is not listed in my purchased apps in the App Store, so I'm a bit apprehensive about proceeding. Instead I've just tried to reset everything through the Server interface manually.


So now I'm at a point where Server.app says my dns and Open Directory are set up properly (at least I hope so), and users can log in to the mac mini server via their network accounts. Great. However, if I create a new account and try to log in (from another Mac), I get an error:


Logging into the account [name] failed because an error occurred.


Not that helpful, but I discovered it was due to the Home directory not being created. I copied and pasted a home directory that already existed, renamed it to [name] and could log in.


So I got a copy of Workgroup manager (I'd been using Server.app before), created a new user, clicked on the 'Home' tab, set the Home to the current dns (afp://192.168.1.35/Users) and clicked 'Create home', then Save. However, the home directory simply isn't created in /Network/Servers/192.168.1.35/Users. At this point I did a bit of hunting and found out about createhomedir. I tried running this, and received an error:


creating home directories for (192.168.1.35)

Entity: line 1: parser error : Document is empty

/var/empty

^


And thats all the output I can get out of it.


Sorry for the wall of text, but I'm trying to be as thorough with my explanation as possible. Any help would be appreciated, as I really don't want to have to copy and paste a blank home directory each time I create a new user.


Thanks,


Rob

Mac mini, Mac OS X (10.7.1)

Posted on Oct 7, 2011 2:46 AM

Reply
4 replies

Oct 7, 2011 7:43 AM in response to omgzrob

This probably isn't terribly helpful, however, in my circumstance, I have found that after creating users, I could work around this problem by logging in as that user physically at the machine. That automatically created their home directory, after which they could ssh into the machine.


I'm sure there is a better way, but I don't know what it is. It seems like Apple doesn't think users need home directories unless they have physical access (after all, email is stored elsewhere, and they have the Wiki server for online website management). If anyone finds out how to make it work, I would like to know, too.


-Chip

Oct 5, 2012 12:24 PM in response to omgzrob

I know this is about a year old, but just incase someone else runs into this issue. Not sure if you were using Active Directory in your original post.


Make sure under Active Directory Settings in Directory Utility, you don't have "Force local home directory on startup disk" checked


This is with a 10.8 server, but my guesses the same setting would also apply to 10.7.


User uploaded file

Can't create home directories

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.