If you are using gdm, you should be able to remove the shutdown option at the login screen by opening /etc/X11/gdm/gdm.conf and changing:
to
You can edit the sudoers file to prevent anyone but root from shutting down then machine by typing visudo as root at the command prompt. Look for lines like the following:
Code:
Cmnd_Alias SHUTDOWN=/sbin/shutdown,/sbin/halt,/sbin/fasthalt,/sbin/reboot,/
sbin/fastboot
%users ALL=NOPASSWD:SHUTDOWN,DIAL,SERVER,HW1,MOUNT1,SGMAP,PDMOUNT
If you remove SHUTDOWN from the %users line, regular users will not be allowed to shut down or reboot the machine.
Hope this helps.