diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init index dd90e64..3f80b03 100755 --- a/virtme/guest/virtme-init +++ b/virtme/guest/virtme-init @@ -204,6 +204,9 @@ if [[ -n "virtme_user" ]]; then echo "root ALL = (ALL) NOPASSWD: ALL" > $tmpfile echo "${virtme_user} ALL = (ALL) NOPASSWD: ALL" >> $tmpfile chmod 440 "$tmpfile" + if [ ! -f "$real_sudoers" ]; then + touch "$real_sudoers" + fi mount --bind "$tmpfile" "$real_sudoers" fi