Removing shutdown and sleep button from the Apple menu on Mavericks
Not sure about Shut Down but you can disable Sleep using pmset:

sudo pmset -a disablesleep 1


This will gray out the Sleep menu item as well.

Source: OS X Server: How to prevent sleep