Skip to content

Instantly share code, notes, and snippets.

@blkperl
Created May 29, 2014 01:31
Show Gist options
  • Save blkperl/6abca61ac3dacc2b21a0 to your computer and use it in GitHub Desktop.
Save blkperl/6abca61ac3dacc2b21a0 to your computer and use it in GitHub Desktop.
root@darkarchon:~# cat /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.pkla
[Disable suspend by default]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no
[Disable suspend for all sessions]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment