I'm trying to remove the "Sleep" button from the login window on some of my Mac's to prevent inadvertently disabling access to the remote server.

How to disable the sleep button from Mac OS X login screen?


Use the Terminal command:

$ sudo defaults write /Library/Preferences/com.apple.loginwindow SleepDisabled -bool True

To re-enable the Sleep button later on, use:

$ sudo defaults write /Library/Preferences/com.apple.loginwindow SleepDisabled -bool False
| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .