summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakechrootpkg1
1 files changed, 1 insertions, 0 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 58983e3..1bd6caf 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -170,6 +170,7 @@ fi
if ! grep "^nobody" "$uniondir/etc/sudoers" >/dev/null 2>&1; then
echo "allowing 'nobody' sudo rights in the chroot"
+ touch "$uniondir/etc/sudoers"
echo "nobody ALL=(ALL) NOPASSWD: ALL" >> "$uniondir/etc/sudoers"
chmod 440 "$uniondir/etc/sudoers"
fi