Password file
This commit is contained in:
parent
0b0e2c85c7
commit
11ea8d45a7
|
@ -253,13 +253,12 @@ EOF
|
||||||
EOF
|
EOF
|
||||||
# change the password for the admin user
|
# change the password for the admin user
|
||||||
echo -n " echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
|
echo -n " echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
|
||||||
echo -n '$(cat /home/' >> $rootdir/root/.bashrc
|
echo -n '$(cat ~/login.txt)"|chpasswd' >> $rootdir/root/.bashrc
|
||||||
echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> $rootdir/root/.bashrc
|
|
||||||
|
|
||||||
# Remove the initial setup files
|
# Remove the initial setup files
|
||||||
echo " rm /root/.initial_setup" >> $rootdir/root/.bashrc
|
echo " rm /root/.initial_setup" >> $rootdir/root/.bashrc
|
||||||
echo " rm /home/${MY_USERNAME}/.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
|
cat >> $rootdir/root/.bashrc <<EOF
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in New Issue