Debugging a non-working login hook

I'm setting up labs in a school, some have 2008 iMacs, 2007 iMacs, 2007 Macbooks and powerbook g4's. I have a new 2008 iMac as my master image and I've set-up a LoginHook in com.apple.loginwindow.plist that runs a script that works just great. It does what I expect it too. I need this LoginHook to work on all the platforms. So far, when I migrate accounts from the iMac 2008 to a Macbook or Powerbook, that LoginHook no longer works. Period.
The com.apple.loginhook.plist copies over, the filesize, permissions and ownerships are the same, the script copies over, permissions and ownerships are the same. I can manually sudo the script and it works. I've added echo statements to an output file in the script, but no output is created.
And I see in the system.log file, in the system where this works, entries for my echo statements like:
Aug 4 10:54:32 "hostname" com.apple.loginwindow[389]: this user is student
which lets me see the script is running.
I don't see mny messages like this on the system that doesn't work.
I've also tried migrating accounts from a machines of the same type (ex: macbook > macbook), but the LoginHook doesn't work.
What is in charge of launching the com.apple.loginwindow.plist? launchd?
Any ideas on why the LoginHook would just conk out like this?

did you make your login hook following these instructions? remember that the loginwindow plist that is used is the one in roots home directory not in /Library/Preferences. That said, I had some problems with login hooks too and never could figure out why mine didn't run so I created a separate launch daemon to run the script i wanted. you can put it in /Library/launchAgents and it will execute whenever anyone logs in. that worked for me.

Similar Messages

  • Whenever I launch firfox through non admin login, I get an alert message.

    Whenever I open firefox through non admin login, I get following alert message. "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features."
    After this, firfox opens but whenever I go to any web page having secure connection like orkut, facebook etc. firefox crashes. It works normally through admin login.
    == This happened ==
    Every time Firefox opened
    == I suppose this started when I updated it to latest version i.e. 3.6.8 ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Thankyou, for contacting Mozilla Firefox, Please join us on live chat so we can better assist you with your issue.

  • Mark debug 'sometimes' not working

    I find mark debug sometimes not working.In my new project ,I add mark debug = true, then set up the debug nets.I can't find them in the assigned nets ,but from the netlists I find some of them.The missing nets are wire type,notregister type.Does the command not work on wire type nets?
    Because my project is very large, searching for the nets requires a very long time.So I hope Xilinx can fix this bug.

    Rather than open another thread, I'll extend this one since I'm having what I think is the same problem.
    I'm using Vivado 2014.4.  "Flatten" is set to "None".  The nets are set in the elaborated design with MARK_DEBUG and DONT_TOUCH.  But when synthesis gets done with them, the names are completely different.
    I don't care if the "equivalent" nets are still there.  I need the names.  Every time synthesis runs, it's a crapshoot whether the names will change.  Particularly bad are 500+ bit buses that get exploded into individual signals.  I don't have the time to regather them into the proper buses every time.
    In general, I've been pleased with the changes in Viviado.  But I can't believe how badly a wonderful tool like ChipScope has been screwed up.
     

  • Dreamweaver CS5 will not open. It shows the splash screen and terminates with non admin login

    Dreamweaver CS5 will not open. It shows the splash screen and terminates with non admin login but works fine with admin login.
    OS - WinXP Sp3
    Things I tried.
    1) Gave full rights on dreamweaver folder in program files.
    2) Disabled welcome screen
    3) Updated to Dreamweaver CS5 11.0.4
    4) Reinstalled
    5) Formated PC
    But issue persists, please help.

    Have you tried deleting or renaming the Dreamweaver configuration file?
    See http://forums.adobe.com/thread/494811
    This can solve many problems and create one in that any snippets that are installed are lost, but you can get them back. Instead of deleting the config file, just name it config.old. When your system is working, just copy the snippets from the .old file to the new one.

  • Yosemite profile manager login hook

    Hi.  We have recently purchased a Mini running Yosemite server.  The server is running profile manager and an open directory server, it is bound to active directory.  This is all working, however I would like to roll out a login script for users.  I have created this script and it works when run manually, however is there a way to specify this to run via Profile Manager?  If the script is located on a server, how can I have a client run this script remotely?  I want to push this out automatically so I don't need to go to all the laptops throughout the company.  Thanks

    If the Login Hook works on your machine, maybe the best way to share the script is using Apple Remote Desktop. But your machines have to be prepared for the remote maintenance.

  • Portable Home Directories and Login Hooks

    We recently switched from Network Home Directories to Portable Home Directories. We used to use login hooks to do all kinds of nifty things to a user's home folder at login, but now it's complicated. I can't figure out at what point in the login+sync process the login hook executes.
    If the login hook executes before syncing, then I need to modify the network copy of the home folder, i.e. Network/Servers/servername/.../username. If the login hook executes after syncing, then I need to modify the local copy of the home folder, i.e. /Users/username. Unless I'm mistaken, you can't just use the tilde (~) in the script to denote the path the home folder, so you have to list the path explicitly.
    My testing seemed to result in inconsistent behavior. Can anyone give me some guidance?
    (Keywords: Loginhook Logouthook Login Script Logout Script Mobility Mobile PHD)

    Thank you for the advice, Syth, but I'm already aware of the basics of writing and implementing login and logout hooks. I wrote a lot of them when we were using Network Home Directories. The root of my question has to do with Portable Home Directories and login hooks.
    This is a computer lab environment where every user has their own account, network home folder, and "Mobility" preferences set in Workgroup Manager. When a user logs into a lab computer, syncing kicks in and they work from a local copy of their home folder which then syncs to the server at login and logout.
    So the core question is: Do login and logout hooks execute before or after login/logout home syncing occurs?
    For example, if a user with a brand new network account, i.e. who doesn't even have a network home yet, logs into a computer, what's the order of events? I would hope it would be:
    1) server creates network home
    2) computer creates local home, i.e. syncs
    3) login hook executes
    But my testing has been inconsistent. Anyone have any experience or insights to share?

  • Login hook question

    I am trying to use login and logout hooks to mute the speaker after logout and unmute it at login in order to get rid of that startup chime (always wakes up my sleeping roommate). The problem is when I follow the procedures at: http://docs.info.apple.com/article.html?artnum=301446 (i have tried both ways); however it seems as though my scripts are not run, is there something special that I have to do because I am running an Intel version of 10.4.8?
    my scripts are as follows:
    login.sh:
    echo "test" >> /loginScriptHit.txt
    osascript -e 'set volume output muted false'
    logout.sh:
    echo "test" >> /logoutScriptHit.txt
    osascript -e 'set volume output muted true'
    I know the scripts are not being run because the text files are not being created.
    Thanks:
    ~Xavier

    Good to hear you got it working.
    If you don't mind me commenting, there are a few borderline security issues with your setup (related to login window hooks running as "root") that might be worth reviewing. In general, for things running as "root", it is good practice to specify the full path to the executable to avoid problems with aliases, functions or ambiguities in the PATH, so eg. using '/usr/bin/osascript' might be better (I'm not sure what to do with the 'echo' since it is a shell "built-in" command, but you could use '/bin/echo' I suppose).
    The script, and the output file are both in areas potentially writable without a password. "/Users/Shared" is world writable, and "/" is writable by any admin user, without a password. In both cases, the "sticky bit" will provide some protection, but if the files were to be removed without removing the login hook, someone could potentially substitute their own files - their own script (which would run as "root") or a symbolic link to something important in the case of the output file, which could lead to data loss.
    The script itself is writable by the owner (presumably you) without a password so if anyone were to sit down in front of the computer while you weren't looking, they could add their own code (no password required), which would again run as "root".
    To exploit any of these issues would require inside knowlege that you have the hooks set up and how (since they are specified in a location that requires "root" access even to read), so it isn't likely that they would ever become a problem, but they might be good to keep in mind as things to avoid. In general, make sure anything that runs as "root" or can influence a process that runs as "root", is kept in a secure area that requires "root" privileges to modify any point on its path, and that any item itself is only modifiable by "root".

  • Login Hook

    Does anyone have any experience creating Apple MAC OS X 10.5.6 Login Hook scripts?
    I need to create one that maps a users network folder (stored on an Apple Xserve) to the desktop when they log onto a MAC. The Login Hook needs to work for roaming user accounts so that the network folder loads no matter what MAC the user logs onto...

    ..."unzip com.prefs.zip […]
    the original owner is "user:staf" but change to "root:admin""...
    Login window hooks run as "root" so when unzipping, the newly expanded files, which by default take the owner of the user performing the unzip, will be owned by "root". Perhaps try 'unzip -X' as one possible option if the original zip was created from files with the intended "user" and "group".
    Another possibility is to run '/usr/bin/sudo -u username /usr/bin/unzip'... so that "unzip" is run as the user (and don't forget the $1 option to run as whatever user is logging in, although that fails in some network settings, or at least it did in earlier versions).
    Depending on the situation, using a launch agent to run the script might be more appropriate...

  • Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input

    Dear Friends,
    We are facing a serious problem for debugging. Expecting valuable input for the same.
    Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
    The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
    1st ] Within R/3
    Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
    2nd ] From webpage to R/3
    Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
    In Prod. Server the 1st case above is working but the 2nd case is not working.
    In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
    The setting which are done in Prod. server are,
    1] RZ10 in parameters are set for port and host name.
    2.1] In SMICM check for ICM.
    2.2] Host file updated in Windows-System 32.
    3] In SICF following services are active,
    3.1] default_host/sap/bc/webdynpro
    3.2] default_host/sap/public/bc
    3.3] default_host/sap/public/bc/webdynpro/viewdesigner
    3.4] default_host/sap/bc/wdvd
    3.5] default_host/sap/public/icman
    3.6] default_host/sap/bc/gui/sap/its/webgui
    3.7] default_host/sap/public/ping
    3.8] default_host/sap/bc/error
    3.9] default_host/sap/bc/echo
    4] In SE80
    4.1] Internet services-System-are published
    4.2] Internet services-WEBGUI-are published
    4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
    4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
    5] In Su01 for user profiles sap_all & sap_new is assigned and role  SAP_BC_WEBSERVICE_DEBUGGER is assigned.
    6] The support packages are also updated to latest level.
    7] Gone through following links but not getting any clues.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
    Thanks in Advance.
    Best Regards,
    Abhijit.

    No cross posting
    Read the "Rules of Engagament"
    Regards
    Juan

  • HT1476 My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones. I'm stumped :/

    My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones and a USB cord that works from the laptop won't work from 3 or 4 different wall boxes that work for others. I'm stumped :/

    Update: It seems as though the phone will charge if I plug it in and then turn it off.  It will not charge while the phone is on.  Also iTunes will not recognize it, so I can't sync or anything.  I read somewhere that it could be a fuse somewhere?? Or maybe the dock connector. Where is the best place to get this repaired?

  • Hiding non-working time in Team Planner View

    Hello there.  The tasks in my project are typically between 2-5 hours over a week period.  In Team Planner View, I'm hoping to provide a better representation of free time between tasks by making my bottom tier hours in a 4 hour count.  However,
    decreasing the scale forces the Task names become cut off when the event itself shrinks.
    I was hoping to remove the non-working time (i.e., nights and weekends) from the Team Planner view to enable a better view.  I'm aware that the capabilities of Team Planner View seem to be limited, but is this type of formatting at all possible?
    Thanks for the help,
    Joe

    Joe --
    After I created my response and posted it, I wondered whether you wanted to completely remove the nonworking time periods.  This is not possible.  The best you can do is to remove the shading for nonworking time periods, but you cannot remove them
    entirely in any view.  Hope this helps.
    Dale A. Howard [MVP]

  • How to enter a Absence on a Non- working day?

    Hi All,
    In our company we dont have exact work schedule rules. So we have the need to be able to enter a Absence on a Non- working day for Salaried employees. when i try to enter an absencen on-working day, the number of hours are zeroed out.
    What configuration settings I need to do So that the system will take a Absence on a non working day.
    Thanks in Advance!!!

    Hello,
    I am having the same problem currently.
    When an absence that is less than one day is entered on a non-working day with a given start time and end time (we are using CATS for entering the times) along with some attendance records, there are collisions as the system tries to create the infotype 2001 record as a full day record, and the start time and end time is not taken into account, so we are not able to transfer these hours correctly to SAP HR.
    I checked all the settings regarding the day types, but could not find the trick..
    The days we are trying to create the absences and attendances for are not public holidays, just ordinary weekends with no working hours, so I don't think Holiday Class is relevant here at all.. 
    If anyone has a solution, please update the thread..
    Best regards,
    Nihan

  • Whenever I go to iTunes with my iPod 5th generation 32 gb iPod Touch, running iOS 8.0.2, It tells me that the "Other" category is using up 14.59 gb of data. I have no clue why it says this and I have searched the internet for fixes and none worked.

    Whenever I go to iTunes with my iPod 5th generation 32 gb iPod Touch, running iOS 8.0.2, It tells me that the "Other" category is using up 14.59 gb of data. I have no clue why it says this and I have searched the internet for fixes and none worked. I have tried on a windows and a mac and noticed no change. I have tried restoring to a backup but that didn't help. I haven't had time to do a full restore but I will try if the problem persists.

    An "other" larger than about 1 1/2 GB indicates corrupted files.
    What is the Other on my iPhone and How to Remove It
    What is "Other" and What Can I Do About It?
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • When I try to set up Icloud control panel in Windows Vista, I get "your setup couldn't be started because the Icloud server stopped responding. I've tried loads of fixes suggested on the net but none worked. Can anyone help me please?

    When I try to set up Icloud control panel in Windows Vista, I get "your setup couldn't be started because the Icloud server stopped responding. I've tried loads of fixes suggested on the net but none worked. Can anyone help me please?

    Hello, ksb2. 
    Thank you for visiting Apple Support Communities.
    We are investigating this issue. This article will be updated as more information becomes available.
    iCloud: iCloud Control Panel setup cannot be started
    http://support.apple.com/kb/TS5178
    Cheers,
    Jason H.

  • Bridge won't open. Tried many ways but none works. Any suggestions please

    Bridge won't open. Tried many ways but none works. Any suggestions please

    Hi,
    Please restart your machine or kill any Bridge entry from task manager/activity manager.
    Regards
    Pragya

Maybe you are looking for