Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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