From 54e9786d6bad7a9f43c0f2df5c029173d63e1e57 Mon Sep 17 00:00:00 2001 From: Matthew Richardson Date: Sat, 23 Jun 2018 22:26:43 +0100 Subject: [PATCH] installer: set correct perms on sudoers.d file. (#158) --- scripts/opt/raspberrypi-ua-netinst/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/opt/raspberrypi-ua-netinst/install.sh b/scripts/opt/raspberrypi-ua-netinst/install.sh index 66809376..18a58fcc 100644 --- a/scripts/opt/raspberrypi-ua-netinst/install.sh +++ b/scripts/opt/raspberrypi-ua-netinst/install.sh @@ -1701,6 +1701,7 @@ if [ -n "${username}" ]; then if [ -z "${userpw}" ]; then echo -n " Setting '${username}' to sudo without a password... " echo -n "${username} ALL = (ALL) NOPASSWD: ALL" > "/rootfs/etc/sudoers.d/${username}" || fail + chmod 440 "/rootfs/etc/sudoers.d/${username}" || fail echo "OK" fi fi