todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

verify boot-time processes #20

Closed todd-dsm closed 2 years ago

todd-dsm commented 6 years ago

Check programs that start when the system boots. The .plist files that launchd uses can occupy any of five folders, and their location determines when the items load and with what privileges:

todd-dsm commented 5 years ago

Review

User stuff

mbook:test vagrant$ sudo ls -l /Library/LaunchDaemons
total 20
-rw-r--r-- 1 root wheel  472 Feb 20  2017 com.github.timsutton.osx-vm-templates.detectnewhardware.plist
lrwxr-xr-x 1 root wheel  103 Sep  1 13:53 com.oracle.java.Helper-Tool.plist -> '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Helper-Tool.plist'
-r--r--r-- 1 root wheel 1156 Aug 25  2016 com.vmware.launchd.tools.plist
lrwxr-xr-x 1 root wheel   76 Sep  1 13:54 org.virtualbox.startup.plist -> '../Application Support/VirtualBox/LaunchDaemons/org.virtualbox.startup.plist'
-rwxr-xr-x 1 root wheel  382 Sep  1 13:54 org.wireshark.ChmodBPF.plist

sudo ls -l /Library/LaunchAgents
total 8
lrwxr-xr-x 1 root wheel 104 Sep  1 13:53 com.oracle.java.Java-Updater.plist -> '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Java-Updater.plist'
-r--r--r-- 1 root wheel 935 Aug 25  2016 com.vmware.launchd.vmware-tools-userd.plist

ll /Users/$USER/Library/LaunchAgents (tbook)
total 32
-rw-r--r-- 1 thomas staff 697 Feb  4  2017 com.adobe.AAM.Updater-1.0.plist
-rw-r--r-- 1 thomas staff 688 Jan 28  2018 com.adobe.GC.Invoker-1.0.plist
-rw-r--r-- 1 thomas staff 484 Apr 10  2017 com.bluejeans.app.detector.plist
-r-xr-xr-x 1 thomas staff 464 Feb 18  2018 com.citrixonline.GoToMeeting.G2MUpdate.plist
-rw-r--r-- 1 thomas staff 803 Jul 17 18:35 com.google.keystone.agent.plist
-r-xr-xr-x 1 thomas staff 451 Feb 18  2018 com.logmein.GoToMeeting.G2MUpdate.plist
-rw-r--r-- 1 thomas staff 524 Jun 13 17:44 com.skype.skype.shareagent.plist
-rw-r--r-- 1 thomas staff 677 Aug 30 10:33 org.virtualbox.vboxwebsrv.plist

System stuff

sudo ls -l /System/Library/LaunchDaemons
sudo ls -l /System/Library/LaunchAgents
todd-dsm commented 2 years ago

we no longer care about such things