Update Sun Aug 22 02:56:07 AM CDT 2021

This commit is contained in:
Dewalt 2021-08-22 02:56:07 -05:00
parent 285fa4cecf
commit a447f125c5
2 changed files with 4 additions and 3 deletions

View File

@ -57,6 +57,9 @@
- password prompt now checks exit code if failure, restart password function
- copy of files from /home/kali/* to /root now uses the actual username not just 'kali'
- menu option 2 - fix smb.conf
- function updated to use sed -i instead of prior method
- fix_sources function updated to use wildcards
- Menu clean up, added bold color to "New VM Setup" Menu option N

View File

@ -558,9 +558,7 @@ fix_smbconf () {
echo -e "\n $green /etc/samba/smb.conf "
echo -e "\n $redminus client min protocol is already set not changing\n $redminus client max protocol is already set not changing"
else
cat /etc/samba/smb.conf | sed 's/\[global\]/\[global\]\n client min protocol = CORE\n client max protocol = SMB3\n''/' > /tmp/fix_smbconf.tmp
cat /tmp/fix_smbconf.tmp > /etc/samba/smb.conf
rm -f /tmp/fix_smbconf.tmp
sed 's/\[global\]/\[global\]\n client min protocol = CORE\n client max protocol = SMB3\n''/' -i /etc/samba/smb.conf
echo -e "\n $greenplus /etc/samba/smb.conf updated"
echo -e "\n $greenplus added : client min protocol = CORE\n $greenplus added : client max protocol = SMB3"
fi