Mailing Lists: Apple Mailing Lists

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

Re: Shell script to make Home Directory by Active Directory Group



Hi Dan,

On 24 Feb 2005, at 01:53, Ball, Dan wrote:
Here is the dream setup I would like to get running:

On login I would like to have a script check to see which group the user is in, if the user is in the Active Directory group "Staff" then copy the user template if they don't all ready have one to there U: drive which for staff would be \\Staff_fac\Drives\users_username and use that as the users Home for now on.

If it was a cad student logging in and the script seen it was a cad student then it would copy from the user template if they don't already have one to there U: drive which for CadStudents would be \\Student\CAD\Drives\users_username


I presume you have Panther clients bound to your AD using Apple's plugin?


Without knowing details of your setup, i can see some major hurdles. LoginHooks run as a root process on the client machine, so how will you create a directory (with appropriate permissions) on a remote server? If these directories are configured in the AD as the users' home directory, then a batch creation tool on the appropriate server would be a better approach, bearing in mind that users added using AD Users & Computers should have had a directory automatically created. If you're running with network home directories, then Panther's required subfolders will be created at first login, if needed. What is the problem you're trying to solve?

HTH

matt

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >Shell script to make Home Directory by Active Directory Group (From: "Ball, Dan" <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.