summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakechrootpkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 09a5e7e..8cd8af7 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -103,7 +103,8 @@ fi
if ! grep "^nobody" "$uniondir/etc/sudoers" >/dev/null 2>&1; then
echo "allowing 'nobody' sudo rights in the chroot"
- echo "nobody ALL=(ALL) NOPASSWD: ALL" >> $uniondir/etc/sudoers
+ echo "nobody ALL=(ALL) NOPASSWD: ALL" >> "$uniondir/etc/sudoers"
+ chmod 440 "$uniondir/etc/sudoers"
fi
#This is a little gross, but this way the script is recreated every time in the