Created
May 16, 2014 18:38
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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