Author Topic: disable SMB1 and activate SMB2 or 3 - my success  (Read 395 times)

doobre

  • Tatanka
  • **
  • Posts: 78
disable SMB1 and activate SMB2 or 3 - my success
« on: February 07, 2024, 06:54:36 PM »
OK I'm answering my own question.. I tried to post this in the thread here [https://forums.buffalotech.com/index.php?topic=24630.60] but after I added my Q. I was locked out.

YES it still works.. the problem was my own finger trouble, so if you are in the same pit as I was, be VERY careful when editing the smb.sh. and you can check the edit by using the execute option.

DON'T forget to pay attention to the "fi" and the "}"

the added text should go between the existing "fi" and before the "}"

as so ...

   /usr/local/sbin/nas_configgen -c samba
        if [ $? -ne 0 ]; then
                echo "$0 configure fail"
                exit 1
        fi
        /bin/sed -i '3i\\
    min protocol = SMB2\\
    max protocol = SMB2\\
        ' /etc/samba/smb.conf
}

once you have saved the file, you can check it was succesful by right clicking, select "file custom commands" > "execute", if you don't get any warning message it was accepted.

thanks again to mishikal and all those here who helped us breathe new life into these old units..

cheers CD
« Last Edit: February 07, 2024, 06:56:41 PM by doobre »
user of 3x LS-WXL, 1xLS220D but not that impressed with the reliability of the Seagate disks they use...