Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OS X Server: Problem with login script.

Posted on 2009-04-06
6
Medium Priority
?
1,367 Views
Last Modified: 2013-11-11
I recently deployed a Mac Os X server and am having quite a bit of trouble with user login scripts.  I've seen quite a bit of information on other users with similar issues (the scripts not running), but all are quite dated.

The issue I'm running into, is that the script isn't being run... these are the steps I've followed thus far:
Server Side:
1) I've placed my script in the Applications/Scripts folder (this folder ISN'T shared)
2) I've given it a ".hook" extension
3) I've given it the appropriate permissions
Client Side
1) set EnableMCXLoginScripts = true in the com.apple.loginwindow.plist
2) set MCXScriptTrust = FullTrust (for testing) in the com.apple.loginwindow.plist

What else could I be missing?

~Greg
0
Comment
Question by:elbarro
  • 3
6 Comments
 
LVL 6

Accepted Solution

by:
hboris earned 2000 total points
ID: 24091596
Why don't you use launchd instead? Much more control, dependencies control etc.

Boris Herman, ACSA
0
 

Author Comment

by:elbarro
ID: 24092380
I'd like to use policy to determine what scripts get run on what clients from within the server.  Is this possible using launchd?

~Greg
0
 
LVL 6

Assisted Solution

by:hboris
hboris earned 2000 total points
ID: 24093745
No, launchd is client side only. However, looking again at your question again I am missing a bit. The FullTrust requires that in In Directory Utility, you select Block man-in-the-middle attacks (requires Kerberos) and Digitally sign all packets (requires Kerberos). Wouldn't for testing purposes Anonymous be more appropriate, because with Trust value name Anonymous the client trusts any directory domain server? It is said that if the clients MCXScriptTrust setting is a level of trust equal to or less than the actual trust value, the client trusts the server and runs its login and logout scripts. If the clients MCXScriptTrust setting is a level of trust more than the actual trust value, the client doesnt trust the server and doesnt run its scripts. The default trust value is FullTrust.

Boris Herman, ACSA
0
 
LVL 6

Expert Comment

by:hboris
ID: 24409128
The answer has been provided. The setting MCXScriptTrust must be set to a lower value for the scripts to be run in user's configuration.

Boris Herman, ACSA
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
This is a tech scam I recently helped my parents through.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question