mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-27 11:08:21 +01:00
disable root password
This commit is contained in:
parent
ea291c2a3a
commit
61d37a71f4
@ -1,4 +1,9 @@
|
||||
do_install:append() {
|
||||
# grant all permission to sudo group
|
||||
sed -i 's/^#\s*\(%sudo\s*ALL=(ALL:ALL)\s*ALL\)/\1/' ${D}/${sysconfdir}/sudoers
|
||||
# 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
|
||||
EOF
|
||||
}
|
Loading…
Reference in New Issue
Block a user