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

Fixes https://github.com/QubesOS/qubes-issues/issues/1130.
This commit is contained in:
Patrick Schleizer 2015-08-26 12:33:35 +00:00
parent c6fa6c9b19
commit 131f79944c

View File

@ -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