Samba, Unable to Access Shared Folders/Files  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
CharlesV
Global Moderator
Posts: 7104
Joined: Sun Jul 07, 2019 5:11 pm

Re: Samba, Unable to Access Shared Folders/Files

#11 Post by CharlesV »

I dont believe so. This error is showing up in searches as a problem with the server min protocol in smb.conf. Did you change that manually at all ?

try this and post results please.

Code: Select all

testparm -sv | grep protocol
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
limotux
Posts: 186
Joined: Tue Jul 27, 2021 9:24 am

Re: Samba, Unable to Access Shared Folders/Files

#12 Post by limotux »

FullScale4Me wrote: Fri Jun 16, 2023 1:53 pm
Samba shares are defined with the MX Tool called MX Samba Config which does NOT store share definitions in /etc/samba/smb.conf.

Please read: Samba Config Help File
Do you mean that what I did before makes no difference?
What Can I do now to overcome the error message I got.
I read the link quickly. It is like steps on how to do it. (Though images are a bit different)
Screenshot_20230616_210109.png
You do not have the required permissions to view the files attached to this post.
MX-23.3_KDE_x64 Libretto May 19 2024, Kernel: 6.1.0-23-amd64 x86_64, KDE Plasma -Init: SysVinit - quad core Intel Core i7 - SSD: Samsung SSD 250GB, Memory: 7.51 GiB
I am not techie. Installed 13 Jun, 2024

User avatar
limotux
Posts: 186
Joined: Tue Jul 27, 2021 9:24 am

Re: Samba, Unable to Access Shared Folders/Files

#13 Post by limotux »

CharlesV wrote: Fri Jun 16, 2023 1:56 pm I dont believe so. This error is showing up in searches as a problem with the server min protocol in smb.conf. Did you change that manually at all ?

try this and post results please.

Code: Select all

testparm -sv | grep protocol
Yes, I changed it when was trying to do manually.

Code: Select all

limo@limo:~
$ testparm -sv | grep protocol
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

        client ipc max protocol = default
        client ipc min protocol = default
        client max protocol = default
        client min protocol = SMB2_02
        server max protocol = SMB3
        server min protocol = SMB2_02
limo@limo:~
$ 

MX-23.3_KDE_x64 Libretto May 19 2024, Kernel: 6.1.0-23-amd64 x86_64, KDE Plasma -Init: SysVinit - quad core Intel Core i7 - SSD: Samsung SSD 250GB, Memory: 7.51 GiB
I am not techie. Installed 13 Jun, 2024

User avatar
CharlesV
Global Moderator
Posts: 7104
Joined: Sun Jul 07, 2019 5:11 pm

Re: Samba, Unable to Access Shared Folders/Files

#14 Post by CharlesV »

If you saved the original smb.conf, I would suggest putting that back into place and then trying the MX Samba Config method, after a reboot. I think your samba config is conflicting
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7104
Joined: Sun Jul 07, 2019 5:11 pm

Re: Samba, Unable to Access Shared Folders/Files

#15 Post by CharlesV »

Specifically, I think this is the issue, remove that line.

Code: Select all

server min protocol = SMB2_02
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
limotux
Posts: 186
Joined: Tue Jul 27, 2021 9:24 am

Re: Samba, Unable to Access Shared Folders/Files

#16 Post by limotux »

CharlesV wrote: Fri Jun 16, 2023 2:10 pm If you saved the original smb.conf, I would suggest putting that back into place and then trying the MX Samba Config method, after a reboot. I think your samba config is conflicting
unfortunately I didn't.
What if I just try and delete it, reboot the laptop? Would that help?
MX-23.3_KDE_x64 Libretto May 19 2024, Kernel: 6.1.0-23-amd64 x86_64, KDE Plasma -Init: SysVinit - quad core Intel Core i7 - SSD: Samsung SSD 250GB, Memory: 7.51 GiB
I am not techie. Installed 13 Jun, 2024

User avatar
CharlesV
Global Moderator
Posts: 7104
Joined: Sun Jul 07, 2019 5:11 pm

Re: Samba, Unable to Access Shared Folders/Files

#17 Post by CharlesV »

Wait 1
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7104
Joined: Sun Jul 07, 2019 5:11 pm

Re: Samba, Unable to Access Shared Folders/Files

#18 Post by CharlesV »

First, make copy of your smb.conf file some place.

Then, delete these lines from your /etc/samba/smb.conf

Code: Select all

        client ipc max protocol = default
        client ipc min protocol = default
        client max protocol = default
        client min protocol = SMB2_02
        server max protocol = SMB3
        server min protocol = SMB2_02
Then I would also remove the edits you made to that same file regarding your shares you tried to setup.

The first part of the [home] section of my default smb.conf looks like this:

Code: Select all

[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700
That should put you back close to default. Then reboot and try to use MX Samba Config again.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
limotux
Posts: 186
Joined: Tue Jul 27, 2021 9:24 am

Re: Samba, Unable to Access Shared Folders/Files

#19 Post by limotux »

CharlesV wrote: Fri Jun 16, 2023 2:13 pm Specifically, I think this is the issue, remove that line.

Code: Select all

server min protocol = SMB2_02
server min protocol = SMB2_02 is not in the file /etc/samba/smb.conf!
MX-23.3_KDE_x64 Libretto May 19 2024, Kernel: 6.1.0-23-amd64 x86_64, KDE Plasma -Init: SysVinit - quad core Intel Core i7 - SSD: Samsung SSD 250GB, Memory: 7.51 GiB
I am not techie. Installed 13 Jun, 2024

User avatar
CharlesV
Global Moderator
Posts: 7104
Joined: Sun Jul 07, 2019 5:11 pm

Re: Samba, Unable to Access Shared Folders/Files

#20 Post by CharlesV »

AH, its a default config. Sorry.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “MX Help”