News:

RAID is not a replacement for a backup! Here's why.

Main Menu

disable SMB1 and activate SMB2 or 3 - my success

Started by doobre, February 07, 2024, 06:54:36 PM

Previous topic - Next topic

doobre

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
user of 3x LS-WXL, 1xLS220D but not that impressed with the reliability of the Seagate disks they use...

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 5: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default), StopForumSpam.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 125 (show)
Files included: 35 - 1354KB. (show)
Memory used: 929KB.
Tokens: post-login.
Queries used: 19.

[Show Queries]