Our users' accounts and home directories are created by shell
script, not by WGM. Thus, they don't automatically get a homedir
based on the User Template. They don't automatically have a
Library or Desktop or any other directory within their home directory.
If you are using a shell script to create a homedirectory, why not
also let the script create a Library/Preferences directory with a
com.apple.dock.plist? In fact, why not let the shell script run the
"createhomedir" command on your OS X server so they *do* get a home
directory from the user template.
So if I log onto a client machine, using a server-based account, my
server-based home directory mounts, with a newly-created Library
and Desktop, as well as a dock full of question marks (files that
aren't in our build that the default dock prefs expect).
This is expected.
Where is the default dock being drawn from? There is no
com.apple.dock.plist file in any User Template/Library/Prefs
directory, either on the server or the client. I'd rather change a
template than have to script a solution, if possible.
Well, see my first answer. You can just put a Dock plist in the user
template on the server and let your shell script run the
"createhomedir" command instead of "mkdir $username".
For that matter, where are the new Desktop and Library being copied
from, or are they just empty directories, populated with files as
necessary?
The user template only gets copied if there is no home directory for
the user the first time they login. So, if your scripts creates
rudimentary user directories (with empty contents) then the server
sees that there already is a directory and does not copy the user
template. Then automatically, the client sees there is no Desktop
folder (which is required for the Finder) and creates it. Likewise
for your Library. Things like Music and Pictures probably only get
created on demand as well.
My advice would be to modify the user template on the server and run
the createhomedir utility from your script. Alternatively, you can
also enforce Dock preferences by using managed preferences.
Regards,
Sjoerd Tieleman.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden