Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created May 16, 2014 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/e4d66098937e8f21c25d to your computer and use it in GitHub Desktop.
Save rtrouton/e4d66098937e8f21c25d to your computer and use it in GitHub Desktop.
Script to fix the Users folder being hidden when iTunes 11.2 is installed and Find My Mac is enabled.
#!/bin/bash
# Detects if /Users is present
# If /Users is present, the
# chflags command will unhide it
if [[ -d "/Users" ]]; then
chflags nohidden "/Users"
fi
# Detects if /Users/Shared is present
# If /Users/Shared is present, the
# chflags command will unhide it
if [[ -d "/Users/Shared" ]]; then
chflags nohidden "/Users/Shared"
fi
# Runs a permissions repair to fix
# the world-writable permission on
# /Users
diskutil repairPermissions "/"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment