Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

createhomedir on OSX Client



Hi all,

Just to give everyone a brief overview, Im running a bunch of OSX 10.2.3 servers. There is one central NetInfo server with several Netinfo domains, all in a hierarchical structure. I then clone my relevant domains to various file servers, e.g. Staff server and Student servers. That all works beautifully. (There is more to it with homedirectories being created on the fly when users pick up their password on the web etc, but beyond the current discussion)

Now for staff, I generally do NOT want to use Network home directories.

So in their Netinfo user entries, I have the 'home' property set to "/Network/Servers/localhost/Users/username".

The 'home_loc' property is set to "<home_dir><url>afp://localhost/</url><path>Users/username</path></home_dir>"
for sake of completeness.

On the OSX servers where I DO have users with Network home directories, I use the 'createhomedir' command to get the server to generate the users home directory in the correct location, permissions set correctly etc.

Now I would very much like to do the same for the Staff Client machines, once they are set up. Everyone knows that 'createhomedir' isnt part of OSX Client, so being adventurous, we copied the binary from the server to the client, into the same location.

Executing it does NOT seem to have the desired effect. It reports back 'creating homedirectories for FQDN of client machine'

example:
[aughost03:~] admin% sudo createhomedir -n /NetInfo/root/staff_db@servername -u username
creating home directories for (aughost03.*.*.edu.au)
[aughost03:~] admin%

(even though I am specifying the Netinfo database to consult) and does NOT create any homedirectory.

We also tried
[aughost03:~] admin% sudo createhomedir somegarbage
creating home directories for (aughost03.*.*.edu.au)
[aughost03:~] admin%

so it doesnt even seem to care what flags/arguments you give it.


What gives?

Providing a moment for the possibility that I can not use 'createhomedir' on the client, how else do people create homedirectories for local users?

Clues appreciated.

Essentially we are looking for some sort of command or script we can run on the client to create the local home directory and have the same ownership and permissions as the user does in the NetInfo domain.

Sincerely

Toby Port

--
-----------------------
Tobias Port Systems Administrator
Acting Assistant Manager
(9/02 - 12/02)
Faculty of Arts- Computing
University of Western Australia.
Tel: +61 8 9380 7974
Room: G.40 - Arts Building
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.