From 14e95ca957d167c66474daf0df417b80f34047eb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Nov 2015 13:43:23 +0000 Subject: [PATCH] Ensure that the admin user can initially sudo --- src/freedombone-image-customise | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index d5d707ce..bb5e7f14 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -149,7 +149,7 @@ To complete the installation run the following: sudo su freedombone menuconfig -' > $rootdir/etc/init.d/motd +' > $rootdir/etc/motd } configure_ssh() { @@ -168,6 +168,10 @@ configure_ssh() { fi } +admin_user_sudo() { + echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers +} + continue_installation() { # If a configuration file exists then run with it # otherwise the interactive installer can be used @@ -279,6 +283,7 @@ chroot "$rootdir" apt-get update configure_ssh configure_networking +admin_user_sudo continue_installation cd /