Skip to content

Commit

Permalink
doc/examples: Don't wait for user to enter password
Browse files Browse the repository at this point in the history
The example user setup script calls adduser which in turn calls passwd
to ask the user for a password; which waits indefinitely for user
input. Since we set the password noninteractively, disable adduser
from asking the user to set a password.

Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006823
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
  • Loading branch information
obbardc committed Oct 27, 2022
1 parent 523cbbb commit c8c5075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/examples/setup-user.sh
Expand Up @@ -3,7 +3,7 @@
set -e

echo "I: create user"
adduser --gecos User user
adduser --gecos User --disabled-password user

echo "I: set user password"
echo "user:user" | chpasswd
Expand Down

0 comments on commit c8c5075

Please sign in to comment.