1
How to run a script at Login screen (BEFORE user types password to log in)?
I have tried launchctl
and place the script under both:
/Library/LaunchDaemons/
/Library/LaunchAgents/
Still the script is executed AFTER log in.
Am I missing something?
Edit:
- I tried
/Library/StartupItems
also didn't work. Is the LaunchDaemons supposed to launch after Login or before. Have anyone successfully make it run before Login? - I'm running on Yosemite.
Do you mean whenever the login screen is shown, or just once after booting your Mac? – Arjan – 2014-11-01T10:30:31.313
Either of them is ok, just before the user log in. Calling the script once, or whenever (multiple times) are both fine. – An Phung – 2014-11-01T12:19:54.437
are you talking about login after boot? or do you mean the password right afterstarting the computer? As the later is requesting the password to unlock your filevaulted harddrive nothing on that harddrive can be executed before. – heiglandreas – 2014-11-01T19:47:32.407
As in my computer, I only have to enter 1 password at login screen. (After pressing power button -> Apple logo -> Login screen -> Enter password -> Load to desktop) – An Phung – 2014-11-02T04:14:00.230