I have 2 login scripts. I need script1 to run if user1 logs in and script 2 to run if user2 logs in.
I believe I need to create a .plist file in the ~/Library/Launchagents folders of each user calling their respective scripts. Is this true.?
Also, the commands within the script have to be run as root.
how can user1 and user2 run the scripts as root..?
Many thanks in advance..