Mailing Lists: Apple Mailing Lists

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

How do you automatically create users "Home" directories?



I am running OSX as the PDC for a local school running Windows 2000/XP.  They have roaming profiles and want to have their "My Documents" folder located on a network drive (H:) for connivance.  I have everything up and running (finally) except for the automatic creation of the physical directory to connect the H: drive to.  Samba will automatically try to connect an incoming share request to a designated location on the servers hard drive if there is a [homes] section, but it will only do so if there is already a preexisting directory.  Unlike requests for profiles, it wont automatically create the necessary directory for the [homes] share.

My first thought is to override the existing "root preexec" option in the [homes] section to include my own little script.  As it ships from Apple, the root preexec option is set to execute "/usr/sbin/inituser %U".  Couldn't I just replace that command with a script of my own "/usr/local/inituser %U" and call the old command as my first step?  Then I should be free to call "mkdir ..." & "chown ... " as I wish.  Do you have a better way to do this?  What am I missing?

Thanx!
  Richard
 _______________________________________________
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

This email sent to email@hidden



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.