Password file
This commit is contained in:
parent
0b0e2c85c7
commit
11ea8d45a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue