forbid hibernation / sleep for users
Héder Balázs
balazs at rainstorm.org
Fri Nov 30 11:36:42 UTC 2007
Hi,
I've found a solution. I tought I write it to the list, because I think it's a
very useful method. I found these steps separately in different web pages by
google. So I've done the following:
Step 1:
--------
Edit /etc/kde3/kdm/kdmrc, add the following lines:
AllowSuspend=None
AllowShutdown=Root
Step 2:
--------
Edit /usr/share/kubuntu-default-settings/kde-profile/default/share/config/ksmserverrc,
add the following lines:
[General]
offerShutdown=false
shutdownType=0
Step 3:
--------
Change permissions of acpi scripts in /etc/acpi to 750:
chmod 750 hibernatebtn.sh hibernatebtn.sh powerbtn.sh sleep.sh
Now there is only logout button in KDE's logout window. :)
Best regards,
Balazs Heder
More information about the kubuntu-users
mailing list