xm xm
2015-Nov-13 14:54 UTC
[LightDM] disable and remove shutdown/restart/suspend/hibernate/ button on login screen
Hello everyone, I have CentOS 7+lightdm+xfce installed. I don't want any user( except root) to be able to hibernate/suspend/reboot/shutdown from the login screen. I would like to remove and disable those buttons. Could anyone help me? Thanks in advance! xm -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20151113/35df283d/attachment.html>
Rex Dieter
2015-Nov-13 17:53 UTC
[LightDM] disable and remove shutdown/restart/suspend/hibernate/ button on login screen
xm xm wrote:> Hello everyone, > > I have CentOS 7+lightdm+xfce installed. > I don't want any user( except root) to be able to > hibernate/suspend/reboot/shutdown from the login screen. I would like to > remove and disable those buttons. > > Could anyone help me?See /usr/share/polkit-1/rules.d/lightdm.rules you'll want to implement a local policy (under /etc/polkit-1/rules.d/ ) that overrides that. -- Rex