How can I set a user's home directory on Mac OS X Server using the command line?
As you asked how to do it from the command line, I take you can open a SSH session for the Mac OS X server, or you can open a terminal window directly from the server.
If this is the case, then execute the following command:
If you are not using any SSH session, or you cannot open a terminal window in the Mac OS X, but you can still access the server from another Mac, then the command is a little different.
The dot after
Warning: Experiment with this on an unimportant account or machine first; I have not tested this.
It can be done. Something like this:
Then, of course, to actually move their home directory folder to its new path, if you haven't done so already, use the following:
By the way, for this kind of thing, the Mac OS X Server Administration Guides (freely downloadable PDFs) are your friends, especially, in this case, the User Mangement one. It includes both the GUI and command-line ways to do many user management tasks. I believe the Open Directory Administration guide explains the schema.