Skip to content

Commit

Permalink
installer: set correct perms on sudoers.d file. (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichar1 authored and FooDeas committed Jun 23, 2018
1 parent fc962a6 commit 54e9786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/opt/raspberrypi-ua-netinst/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54e9786

Please sign in to comment.