Il giorno Sat, 1 Mar 2003, Anthony Ewell cos ha scritto:
|Date: Sat, 01 Mar 2003 17:05:44 -0800
|Subject: shutdown permissions
|
|Hi All,
|
| Not to ask too stupid of a question, but what
|governs who can shutdown their computer? (I have
|always had root privileges and it has never been
|an issue. Now I have to give some non-root users
|shutdown privileges and other no privileges.)
|
I think the easiest setup you can deploy, is having a "shutdown" group on your
system and issue # chgrp shutdown /sbin/shutdown ; chmod 4750 /sbin/shutdown
Now, if shutdown is the only command able to reboot/shutdown your system,
only users belonging to the "shutdown" group can do it.
Sandro
--
Bellum se ipsum alet
La guerra nutre se stessa
Livio, Ab urbe condita, XXXIV,9