Allowing users to shutdown

Probably a simple question: I'd like to allow a select few users to shutdown the system.

One solution would be to add those users to the operator group, but this gives them other privileges as well.

Another solution might be to chgrp /sbin/shutdown to another group that only those users are a member of. Can I simply change the group-ownership of /sbin/shutdown just like that, or will this have adverse effects (or maybe even not work at all) too?

What do you think is the best way to get this done?

Alphons
 
Sudo? Just give sudoers the right to execute /sbin/shutdown as root. Better not mess with ownerships of such core programs.
 
DutchDaemon said:
Sudo? Just give sudoers the right to execute /sbin/shutdown as root. Better not mess with ownerships of such core programs.
Sudo... now why didn't I think of that??? Thanks.

Alphons
 
Back
Top