Skip to content
Snippets Groups Projects
Commit 11ea8d45 authored by Bob Mottram's avatar Bob Mottram
Browse files

Password file

parent 0b0e2c85
No related branches found
No related tags found
No related merge requests found
......@@ -253,13 +253,12 @@ EOF
EOF
# change the password for the admin user
echo -n " echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
echo -n '$(cat /home/' >> $rootdir/root/.bashrc
echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> $rootdir/root/.bashrc
echo -n '$(cat ~/login.txt)"|chpasswd' >> $rootdir/root/.bashrc
# Remove the initial setup files
echo " rm /root/.initial_setup" >> $rootdir/root/.bashrc
echo " rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
echo " shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/root/.bashrc
echo " shred -zu ~/login.txt" >> $rootdir/root/.bashrc
cat >> $rootdir/root/.bashrc <<EOF
fi
exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment