Skip to content

Instantly share code, notes, and snippets.

@meeDamian
Created October 2, 2014 18:50
Show Gist options
  • Save meeDamian/330b9d42eeab6259744a to your computer and use it in GitHub Desktop.
Save meeDamian/330b9d42eeab6259744a to your computer and use it in GitHub Desktop.
Easiest way to create a persistent Guest account on Mac OS X (tested on Mavericks and Yosemite)
  1. Create a new Standard User (name it ex. Blah),
  2. Log in as this user and setup account as you want it to be for Guest,
  3. Log out,
  4. Log in as any administrator (for root skip sudo),
  5. Execute those commands:
sudo rm -rf /Users/Blah/Library/Caches/*
sudo rm -rf /Users/Blah/Library/Keychains/login.keychain
sudo rm -rf /Users/Blah/Library/Preferences/SDMHelpData
sudo rm -rf /Users/Blah/Library/Saved\ Application\ State/*
sudo rm -rf /System/Library/User\ Template/English.lproj
sudo ditto -V /Users/Blah /System/Library/User\ Template/English.lproj
sudo chown -R root:wheel /System/Library/User\ Template/English.lproj
  1. Remove user created in #1 step (Blah),
  2. Done.

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment