How to Remove Eject Button from Finder

ejectfinder

I accidentally ejected an external drive in the finder, is there an option to hide or remove/disable eject button from finder?

Best Answer

You can use the command below to edit the com.apple.finder preference.

defaults write com.apple.finder ProhibitEject true

that will set it for the current user, to set it system wide use

sudo defaults write com.apple.finder ProhibitEject true

The eject button will still show in finder but will not do anything when pressed.