Răsfoiți Sursa

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.
Patrick Schleizer 8 ani în urmă
părinte
comite
313860e02c
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      debian/qubes-core-agent.preinst

+ 5 - 0
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