From 3428f9ddf26373bac34a66ac0c2e15f3120e697c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 8 May 2008 15:31:37 +0200 Subject: [PATCH] Adjust username in /etc/inittab.grml, issue 436 --- debian/changelog | 3 +++ etc/grml/fai/config/scripts/GRMLBASE/21-usersetup | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index a501d35..037c098 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,9 @@ grml-live (0.7) unstable; urgency=low * buildd: use RELEASE-class in all build scripts * Mention noquick bootoption in bootsplash and cheatcode file. * Fix typo in bootsplash f3, thanks to Daniel Martin for reporting. + * Make sure username is adjusted in /etc/inittab.grml if username + not being "grml". Thanks for reporting, Thomas Lehmann. + [Testing: issue436] -- Michael Prokop Wed, 26 Mar 2008 22:56:31 +0100 diff --git a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup index 3214511..47d1525 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Thu Nov 15 09:42:42 CET 2007 [mika] +# Latest change: Thu May 08 15:30:20 CEST 2008 [mika] ################################################################################ set -u @@ -68,6 +68,12 @@ add_user_to_group voice sed -i 's/^root::/root:*:/' $target/etc/shadow sed -i "s/^$USERNAME:!:/$USERNAME:*:/" $target/etc/shadow +# make sure users can log in on consoles 4, 5 and 6 if username != grml: +if [ "$USERNAME" != "grml" ] ; then + sed -i "s/-u grml -g grml --autologin grml/-u ${USERNAME} -g ${USERNAME} --autologin ${USERNAME}/" \ + $target/etc/inittab.grml +fi + if [ -r $target/bin/zsh ] ; then $ROOTCMD chsh -s /bin/zsh root $ROOTCMD chsh -s /bin/zsh $USERNAME -- 2.1.4