From 60a334d0cf4fdc15735df3f07a8e4a055bf4d8f3 Mon Sep 17 00:00:00 2001 From: James Hunt Date: Tue, 29 Jul 2014 21:45:11 +0100 Subject: [PATCH] * ubuntu-core: Ensure user can use sudo. --- live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot diff --git a/live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot b/live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot new file mode 100755 index 00000000..2e48e233 --- /dev/null +++ b/live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot @@ -0,0 +1,8 @@ +#!/bin/sh -x + +USER=ubuntu + +DEFGROUPS="sudo" + +echo "I: add $USER to ($DEFGROUPS) group(s)" +usermod -a -G ${DEFGROUPS} ${USER}