Browse Source

etc/sudoers.d/hibernate: allow suspend & change group to plugdev

It seemed like a suitable one from the default groups Debian creates.
remotes/blesmrt/master
Mikaela Suomalainen 9 months ago
parent
commit
07ae3bbef6
Signed by: Mikaela Suomalainen <mikaela+git@mikaela.info> GPG Key ID: 0C207F07B2F32B67
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      etc/sudoers.d/hibernate

+ 5
- 3
etc/sudoers.d/hibernate View File

@@ -1,3 +1,5 @@
# Allow everyone in the sudo group to hibernate
# passwordlessly
%sudo ALL = NOPASSWD: /usr/sbin/hibernate
# Allow everyone in the plugdev group to hibernate passwordlessly
# Yes, I am abusing the default Debian groups :)
%plugdev ALL = NOPASSWD: /usr/sbin/hibernate
# suspend
%plugdev ALL = NOPASSWD: /usr/sbin/s2ram

Loading…
Cancel
Save