Created
February 20, 2014 22:46
-
-
Save Nora-Ballard/9124876 to your computer and use it in GitHub Desktop.
Sets some basic security settings on OS X.
This file contains hidden or 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
| -- Security Control: Enable 'Use secure virtual memory' | |
| do shell script "defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -bool yes" with administrator privileges | |
| -- Security Control: Disable remote control infrared receiver | |
| do shell script "defaults write /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabled -bool no" with administrator privileges | |
| -- Security Control: Disable automatic login | |
| do shell script "defaults write /Library/Preferences/.GlobalPreferences com.apple.autologout.AutologoutDelay -int 0" with administrator privileges | |
| -- Security Control: Set the login options to display name and password in the login window. | |
| do shell script "defaults write /Library/Preferences/com.apple.loginwindow SHOWFULLNAME -bool yes" with administrator privileges | |
| -- Security Control: Disable fast user switching. | |
| do shell script "defaults write /Library/Preferences/.GlobalPreferences MultipleSessionEnabled -bool NO" with administrator privileges | |
| -- Security Control: Set Login Banner Text | |
| set LoginwindowText to "<Add Banner Text Here>" | |
| do shell script "defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText '" & LoginwindowText & "'" with administrator privileges |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment