Mailing Lists: Apple Mailing Lists

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

Shell script to make Home Directory by Active Directory Group



Hi everyone,

Just wondering if anyone has any shell scripts they could share?


Few example Active Directory Groups:
Graphic Design
Staff
gdstudents
cadstudents


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

Doesn't sound like it would be hard to do I just suck at writing scripts from scratch!  Anyone have any scripts that may do something similiar to this that would help me out getting a script created?

Thanks,

Dan Ball
Pittsburgh Technical Institute

 _______________________________________________
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



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.