On Sat, Nov 08, 2003 at 11:52:05AM +0000, Edenyard wrote:
What is the correct way of making 'ordinary' users (i.e., not root) able to shut the PC off at the end of the session?
I've no idea of the "correct" way, as I wouldn't allow anybody but root to shutdown any of my boxes. ;)
What I'd probably do is make /sbin/halt SUID root(chmod it to 4750), then chown it to root.shutdown or somesuch, and add the users you want to be allowed to shutdown the box, to the `shutdown' group.