http://bjoernstechblog.rueffer.info/posts/mac/2011/05/25/Snow-Leopard-Login-window-buttons-for-Restart,-Shutdown,-and-Sleep/
last updated on 25 May 2018

25 May 2011

Snow Leopard Login window buttons for Restart, Shutdown, and Sleep

In Snow Leopard (and probably older versions as well) you can disable the login window buttons for restarting or shutting down the computer. The following commands are pretty self explanatory:

sudo defaults write /Library/Preferences/com.apple.loginwindow RestartDisabled -bool true

sudo defaults write /Library/Preferences/com.apple.loginwindow ShutDownDisabled -bool false

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

This will disable the sleep and restart buttons and enable the shutdown button.

Björn Rüffer — Copyright © 2009–2018 — bjoern.rueffer.info