well the convoluted way i'd go about doing it is to find out where shutdown and halt are at using the whereis command (for me the ones to look at are in /sbin). anyway, create a group, add the users you want to be able to shutdown/halt to that group, use chgrp on those files to the name of your new shutdown group, and then chmod those files to allow exec permissions for group. that should do it. if you want to keep your new user for shutdown, you'll have to edit the sudo file. i guess man sudo for that.
edit: for me, the basic commands that you're used to using (/usr/bin/poweroff, /usr/bin/reboot, etc...) are just links to halt, shutdown, or consolehelper (which maybe just a redhat thing).
Last edited by megaspaz; 11-12-2003 at 03:37 AM.
|