Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2014-06-15 07:18:54 +0200
committerPetter Reinholdtsen <pere@hungry.com>2014-06-15 07:19:01 +0200
commit8dcc81f043b3550d3e6f1b1792507700158bd895 (patch)
tree02893ef896b6a3bdf7567567eacc7606f358a11c /bin
parentf04475252e16e19f83e6c28acce6a5ff3db73f0f (diff)
Drop well known password for root.
Give fbx user sudo access and lock down password for root user.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/freedombox-customize2
-rwxr-xr-xbin/mk_freedombox_image2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index c495ecd..8d6acdc 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -27,9 +27,11 @@ export LC_ALL=C LANGUAGE=C LANG=C
export NOSOURCE=false
username=fbx
+echo "warning: creating initial user $username with well known password!"
password=frdm
chroot $rootdir adduser --gecos $username --disabled-password $username
echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
+chroot $rootdir adduser $username sudo
cat <<EOF > etc/apt/sources.list
deb $MIRROR $SUITE main contrib non-free
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index 0f9457b..0c34bc7 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -106,7 +106,7 @@ sudo -H \
--verbose \
--mirror $MIRROR \
--customize "$basedir/bin/freedombox-customize" \
- --root-password freedom \
+ --lock-root-password \
--arch $ARCHITECTURE \
--distribution $SUITE \
$extra_opts \