浏览代码

Allow passwordless login for user "user" (when using 'sudo xl console').

Fixes https://github.com/QubesOS/qubes-issues/issues/1130.
Patrick Schleizer 8 年之前
父节点
当前提交
131f79944c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      debian/qubes-core-agent.preinst

+ 1 - 1
debian/qubes-core-agent.preinst

@@ -44,7 +44,7 @@ if [ "$1" = "install" ] ; then
     # User add / modifications
     # --------------------------------------------------------------------------
     id -u 'user' >/dev/null 2>&1 || {
-        useradd --user-group --create-home --shell /bin/bash user
+        useradd --password "" --user-group --create-home --shell /bin/bash user
     }
     id -u 'tinyproxy' >/dev/null 2>&1 || {
         useradd --user-group --system -M --home /run/tinyproxy --shell /bin/false tinyproxy