Description

Hide local admins at the login window

Ingredients

  • FW Admin

  • Proper text editor (like TextWrangler - OS X or notepad ++ - Windows)

Directions

  1. Make an empty Fileset with a script that runs at activation.

  2. Use this code as an example of how to hide admins at login, and also show the "other..." option at the login window to still use the local admin account.

    1 2 3 4 5 6 7 8 9 10 11 12 13 #!/bin/sh # This script is a Postflight sample # benm @ fw #hide the just made admin account and enable screen sharing echo "hiding local admins at the login window" #enable hidden admins sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES #enable "other..." option at login window sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool TRUE



  3. To show admins at the login window again. Send out:

    1 sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool NO

     

Notes