How to lock the Dock on your Mac to prevent unwanted changes

To prevent your Dock from being messed with by anyone, you can lock it down using Terminal.
Mac

Lock the Dock contents. true to lock, false to unlock.

defaults write com.apple.Dock contents-immutable -bool true; killall Dock

defaults write com.apple.Dock contents-immutable -bool false; killall Dock

Lock the Dock position

defaults write com.apple.Dock position-immutable -bool true; killall Dock

Lock the Dock size

defaults write com.apple.Dock size-immutable -bool true; killall Dock

Written by Sandy Writtenhouse
https://www.idownloadblog.com/2020/01/15/how-to-lock-the-dock-on-mac/


Posted by fbrefere001 on Tuesday May 27, 2025