Some updates for 20-sudo, 21-usersetup and drop resolv.conf handling in cleanup script
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 21-usersetup
index ba46d1c..fc71e2f 100755 (executable)
@@ -18,7 +18,7 @@ $ROOTCMD addgroup --gid 1000 $USERNAME
 $ROOTCMD useradd -d /home/$USERNAME -m -s /bin/zsh -g 1000 $USERNAME
 
 sed -i 's/^root::/root:*:/' $target/etc/shadow
-sed -i "s/^$USERNAME::/$USERNAME:*:/" $target/etc/shadow
+sed -i "s/^$USERNAME:!:/$USERNAME:*:/" $target/etc/shadow
 
 $ROOTCMD chsh -s /bin/zsh root
 $ROOTCMD chsh -s /bin/zsh $USERNAME