1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-12-26 02:38:22 +01:00

add swaylock to sudo

This commit is contained in:
DanyLE 2023-07-26 15:30:52 +02:00
parent a44cf639b6
commit 07a057d7b3

View File

@ -4,6 +4,6 @@ do_install:append() {
# allow sudo group to power off/reboot system without password
cat << EOF >> ${D}/${sysconfdir}/sudoers
## sudo user group is allowed to execute halt and reboot
%sudo ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff
%sudo ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff, /usr/bin/swaylock
EOF
}