Author: aitor_czr Date: To: dng Subject: Re: [DNG] Request for testing of slim/experimental
Hi,
On 9/3/19 8:37, aitor_czr wrote: > My latest image of gnuinos beowulf (not uploaded yet) waits for a
> keyboard press event during live boots.
> I'm still not sure if this is related with the new version of slim.
> I'll check it soon. Another possible cause might be
> the non configured live-config scripts. Daniel Baumann would throw up
> his arms, but i always use a very simple script for that
> because it just worked for me during years.
>
> Cheers,
>
> Aitor.
> Here you are the script:
tmp_shadow=`cat /etc/shadow`
rm -f /etc/shadow
for line in $tmp_shadow; do
if echo "$line" | grep -o "^${user}:"; then
line=`echo $line | sed -e "s/[\/,\.]//g"`
hash=`echo $line | cut -d ":" -f 2,3,4,5,6,7,8`
fi
echo "$line" >> /etc/shadow
done
sed -i "s/$hash/::::/g" /etc/shadow
sed -i '25i $user ALL=(ALL:ALL) ALL' /etc/sudoers
A welcome screen will ask for optional passwords for both the regular
user and root.