+ Post New Thread
Results 1 to 3 of 3
Mac Thread, Mac Login Script in Technical; Hi We've integrated our 15 new shiny macs into AD using the 3rd party ADmitMac solution which is working well. ...
  1. #1
    gybe78's Avatar
    Join Date
    May 2008
    Thank Post
    Thanked 30 Times in 20 Posts
    Rep Power

    Mac Login Script


    We've integrated our 15 new shiny macs into AD using the 3rd party ADmitMac solution which is working well.

    However, I need to implement a Login Script to copy some files for users when they login. I have read how to add a Login Script using Workgroup Manager but I don't know what format my script should be in. Workgroup Manager doesn't let me select a .sh script file as a Login Script.

    Anyone have any ideas?


  2. #2

    Join Date
    Jul 2005
    Thank Post
    Thanked 20 Times in 18 Posts
    Rep Power
    You could try a bash script and changing the extension to ".hook" without the quotes. You need to make sure that you make it executable too.

    There are some issues with login hooks in Leopard that I have seen floating around, and some solutions suggest copying the script to the local machine and having it start up from there rather than be assigned through WGM. I have to admit that I avoid login hooks like the plague

    There is an excellent Apple KB article that you can look at to:


    Scarily there are also people who use launchd agent configuration files! Yikes!!



    Free Mac Support Leopard Workgroup Manager - Can’t Select Login / Logout Scripts
    Last edited by kingswood; 18th August 2008 at 04:20 PM. Reason: Added Info

  3. #3

    Join Date
    Sep 2008
    Thank Post
    Thanked 0 Times in 0 Posts
    Rep Power
    I Googled for the same thing, and ended up here. I eventually found that you must have no extension on the login script, and you must set the executable bit on the file:

    chmod +x /loginhook
    Hope that helps

+ Post New Thread

Similar Threads

  1. Printers disappearing after login script
    By gshaw in forum Windows
    Replies: 11
    Last Post: 10th June 2009, 07:47 PM
  2. Setting timezone with login script
    By Halfmad in forum Windows
    Replies: 4
    Last Post: 9th May 2008, 11:28 AM
  3. Script visibility after login
    By Blind in forum Scripts
    Replies: 5
    Last Post: 21st April 2008, 12:03 PM
  4. Vista + VB login script
    By dave.81 in forum Windows Vista
    Replies: 5
    Last Post: 17th February 2008, 05:29 PM
  5. Login script problem
    By SpuffMonkey in forum Windows
    Replies: 55
    Last Post: 4th February 2006, 10:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts