macOS Notes

Extended File Attributes

Useful Safari Preferences

Preferences > General > Safari opens with > A new private window

Finding Recently Changed Files

Find files with status change in the last hour: find ~ -ctime -1h

Add Chrome Policy to Stop Extension Installs

[update 7/1/2020: Google fixed the extension malware issue in Chrome, so this policy work-around is no longer necessary.]

[update 6/12/2018: Google says they’ve been getting lots of complaints about accidental extension installs. To fix it, they will be phasing in a change so extensions have to be installed through the Chrome Web Store. Inline extension installations will be disabled. See Improving extension transparency for users on the chromium blog.]

Adding a policy to blacklist Chrome extensions helps prevent accidental installs of extension malware. This works for the currently logged in account on macOS. To cover multiple accounts, repeat the procedure for each of them.

Set ExtensionInstallBlacklist

# Add the policy
defaults write com.google.Chrome ExtensionInstallBlacklist -array "*"

# Check that it worked
cd /tmp
cp ~/Library/Preferences/com.google.Chrome.plist .
plutil -convert json -r com.google.Chrome.plist
cat com.google.Chrome.plist
...
  "ExtensionInstallBlacklist" : [
    "*"
  ],
...

Remove ExtensionInstallBlacklist

# Remove the policy
defaults delete com.google.Chrome ExtensionInstallBlacklist

# Check that it worked
cd /tmp
cp ~/Library/Preferences/com.google.Chrome.plist .
plutil -convert json -r com.google.Chrome.plist
cat com.google.Chrome.plist
...

View Active Policies

Load url: chrome://policy/

2/26/2018