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

It seemed like a suitable one from the default groups Debian creates.
This commit is contained in:
Aminda Suomalainen 2019-02-18 20:07:36 +02:00
parent 727df46808
commit 07ae3bbef6
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
1 changed files with 5 additions and 3 deletions

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