Thanks for this. It's a good way lock the dock, but yet again in a roundabout way.
Let's say I am logged in as Administrator. I want my dock locked. Simple as that.
I don't want to have to use Onx or any other app. and, with no disrespect to you for your neat suggestion, I don't want to have to log in as a different user.
To remove an icon from the menu bar I hold down the alt key and drag the icon away. That avoids icons in the menu bar disappearing in a puff of smoke when I mishandle the mouse (especially when I am a bit squiffy).
I'd just like the same for the dock.
Lord Macintosh PQvCR
Order of the Royal Garter to the House of Jobs