From 313860e02c135939f4f4423ed7cec01832351da6 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 27 Aug 2015 17:30:02 +0000 Subject: [PATCH] Allow passwordless login for user "user" (when using 'sudo xl console') for images being upgraded. Thanks to @marmarek for help with this fix. Fixes https://github.com/QubesOS/qubes-issues/issues/1130. --- debian/qubes-core-agent.preinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/qubes-core-agent.preinst b/debian/qubes-core-agent.preinst index 9203259..6ae8cc4 100755 --- a/debian/qubes-core-agent.preinst +++ b/debian/qubes-core-agent.preinst @@ -68,6 +68,11 @@ if [ "$1" = "upgrade" ] ; then fi fi fi + ## Allow passwordless login for user "user" (when using 'sudo xl console'). + ## https://github.com/QubesOS/qubes-issues/issues/1130 + if grep -q '^user:\!:' /etc/shadow ; then + passwd user -d >/dev/null || true + fi fi # dh_installdeb will replace this with shell code automatically