Buffalo Forums

Products => Solved Storage Threads => Topic started by: doobre on February 07, 2024, 06:54:36 PM

Title: disable SMB1 and activate SMB2 or 3 - my success
Post by: doobre 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
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 45 (show)
Files included: 27 - 1055KB. (show)
Memory used: 735KB.
Tokens: post-login.
Queries used: 10.

[Show Queries]