From 131add046d0339fea5d16ab0cca43bb8178c526d Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Mon, 12 Aug 2013 19:29:45 -0400 Subject: [PATCH] Add user to nopasswdlogin group too --- live-build/ubuntu-touch/hooks/01-setup_user.chroot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/ubuntu-touch/hooks/01-setup_user.chroot b/live-build/ubuntu-touch/hooks/01-setup_user.chroot index 72d14214..20883e13 100755 --- a/live-build/ubuntu-touch/hooks/01-setup_user.chroot +++ b/live-build/ubuntu-touch/hooks/01-setup_user.chroot @@ -9,6 +9,9 @@ adduser --gecos $USER --disabled-login $USER --uid $UGID echo "I: set user $USER password to $USER" echo "$USER:$USER" | chpasswd +echo "I: allowing user to log in without password" +gpasswd -a $USER nopasswdlogin + adduser --gecos system --no-create-home --disabled-login --disabled-password system --uid 1000 adduser --gecos radio --no-create-home --disabled-login --disabled-password radio --uid 1001