Hi
One way to stop people shutting down (or rebooting) is to change the policies. This is tested on 10.04 not 10.10 but i think it should still work.
Open a terminal and type
you can changeCode:sudo nano /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
toCode:<action id="org.freedesktop.consolekit.system.stop"> <description>Stop the system</description> <message>System policy prevents stopping the system</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
You can do the same for the reboot section. When i change it on my laptop, if i try to shutdown it will just log me out.Code:<action id="org.freedesktop.consolekit.system.stop"> <description>Stop the system</description> <message>System policy prevents stopping the system</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>no</allow_active> </defaults> </action>
You can disable the power button by typing (if i remember correctly)
You might also want to disable shutdown from the logon screen.Code:sudo chmod 0 /etc/acpi/powerbtn.sh
Kind regards



Adv Reply

Bookmarks