From e6cd959f4c9352fb7b725d2b659b1f085fd89f69 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Mon, 12 Aug 2013 15:42:36 -0400 Subject: [PATCH] Mark the 'system' uid 1000 user as a system user, to avoid it showing up in the greeter --- 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 b214eb58..dd62f494 100755 --- a/live-build/ubuntu-touch/hooks/01-setup_user.chroot +++ b/live-build/ubuntu-touch/hooks/01-setup_user.chroot @@ -12,6 +12,9 @@ echo "$USER:$USER" | chpasswd 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 +# Prevent the system user from being presented in the greeter by bumping MIN_UID +sed -i 's/^\(UID_MIN\s\+\).*/\11001/g' /etc/login.defs + mkdir -p /home/$USER/Music mkdir -p /home/$USER/Pictures mkdir -p /home/$USER/Videos