Koozali.org: home of the SME Server

SMB share not working

Offline kittykat

  • 14
  • +0/-0
SMB share not working
« on: November 26, 2020, 02:29:52 PM »
Hi Guys

What could be possible reasons for not being able to connect to a share/i-bay ?
I checked permissions etc.

Thanks
Kittty

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: SMB share not working
« Reply #1 on: November 26, 2020, 06:29:12 PM »
What OS is having the issue... MS windows? what version.

Added: this is sme10 forum, are you using A5
--
qui scribit bis legit

Offline kittykat

  • 14
  • +0/-0
Re: SMB share not working
« Reply #2 on: November 26, 2020, 06:32:16 PM »
What OS is having the issue... MS windows? what version.

Added: this is sme10 forum, are you using A5

Win 10
Currently testing V10 of Sme server.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: SMB share not working
« Reply #3 on: November 26, 2020, 06:54:26 PM »
On Windows 10 - have you set smb version, default is smb1 disabled
https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3

If you wish to leave W10 as is look at the wsdd contrib
Currently in smedev awaiting move to contribs - http://mirror.canada.pialasse.com/releases/testing/10/smedev/x86_64/RPMS/smeserver-wsdd-0.2-1.el7.sme.noarch.rpm

There are a number of discussions on the forum re windows 10 issues
« Last Edit: November 26, 2020, 06:58:51 PM by TerryF »
--
qui scribit bis legit

Offline kittykat

  • 14
  • +0/-0
Re: SMB share not working
« Reply #4 on: November 26, 2020, 09:16:28 PM »
On Windows 10 - have you set smb version, default is smb1 disabled
https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3

If you wish to leave W10 as is look at the wsdd contrib
Currently in smedev awaiting move to contribs - http://mirror.canada.pialasse.com/releases/testing/10/smedev/x86_64/RPMS/smeserver-wsdd-0.2-1.el7.sme.noarch.rpm

There are a number of discussions on the forum re windows 10 issues

Thanks, what version should it be?

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: SMB share not working
« Reply #5 on: November 27, 2020, 05:27:41 AM »
Suggest yoiu familarize yourself with some background first - https://forums.contribs.org/index.php/topic,53587.0.html

Either restore W10s smb1 settings as decsribed in the MS doc HERE or leave it with smb1 disabled and use the wonderful work of ReetP

WSDD contrib - https://forums.contribs.org/index.php/topic,54268.msg284028.html#msg284028
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: SMB share not working
« Reply #6 on: November 27, 2020, 09:58:33 AM »
We need a wiki page, and update the unit file for the new target.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline kittykat

  • 14
  • +0/-0
Re: SMB share not working
« Reply #7 on: November 27, 2020, 02:56:45 PM »
Suggest yoiu familarize yourself with some background first - https://forums.contribs.org/index.php/topic,53587.0.html

Either restore W10s smb1 settings as decsribed in the MS doc HERE or leave it with smb1 disabled and use the wonderful work of ReetP

WSDD contrib - https://forums.contribs.org/index.php/topic,54268.msg284028.html#msg284028

I managed to get it working with the fix below.

Code: [Select]
config setprop smb ServerMaxProtocol NT1
 expand-template /etc/smb.conf
 service smb restart

Can I makes changes the smb.conf or will any changes made via the gui over-ride it ?
I don't want my shares browsable. I will map them instead.


Offline kittykat

  • 14
  • +0/-0
Re: SMB share not working
« Reply #8 on: November 27, 2020, 03:04:25 PM »
ok I see this.

Quote
#          !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.

How does one then include custom smb.conf setting ?


Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: SMB share not working
« Reply #9 on: November 27, 2020, 03:31:01 PM »
ok I see this.

How does one then include custom smb.conf setting ?

Read the manual in the Wiki? A lot of time was spent writing it, and there is a wealth of other information there too. Please make use of it and you can then answer this sort of question yourself.

In short, if you set a configuration item manually (and not via the server-manager which only has a subset of configuration items) and run the correct service e-g. console-save or post-upgrade/reboot then the system will re-generate the template for you.

You do not need to do this:

Code: [Select]
config setprop smb ServerMaxProtocol NT1
expand-template /etc/smb.conf
service smb restart

You should do this or similar:

Code: [Select]
config setprop smb ServerMaxProtocol NT1
signal-event console-save

If you REALLY need something not allowed by a configuration item ie some new setting (and you need to look in the templates to see what is there, and what is not)  then you can create custom template overrides. Read the wiki for more. There are pages on extra settings if required and lots of other good stuff.

Note - Windows will likely outlaw SMB1 before very long - they will pull support entirely and you will have no choice but to use SMB3. It is just a matter of time.

Quote
I don't want my shares browsable. I will map them instead.

In that case you seem to have missed the core point that you do NOT need to set it back to NT1 - all that does is allow use of SMB1 on Windows and re-enables NetBIOS browsing.

If you do NOT want browsing then use SMB3 and map the shares. If you use SMB3 and want browsing use wsdd.

Quote
What could be possible reasons for not being able to connect to a share/i-bay ?

And that was your original question.

You should have been able to connect because you would be using SMB3. You just could not browse shares. That is a different thing entirely. Just use SMB3 for your own security, and map the drives.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline kittykat

  • 14
  • +0/-0
Re: SMB share not working
« Reply #10 on: November 27, 2020, 03:46:55 PM »

You should have been able to connect because you would be using SMB3. You just could not browse shares. That is a different thing entirely. Just use SMB3 for your own security, and map the drives.

With smb1 on V10 I can map my shares, without it, I am not able to do it, even if we forget the browsing issue.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: SMB share not working
« Reply #11 on: November 27, 2020, 04:54:21 PM »
With smb1 on V10 I can map my shares, without it, I am not able to do it, even if we forget the browsing issue.

In that case you may have another issue.

They should map with SMB3.

What errors have you got? You must have some in Windows, and probably SME too.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline kittykat

  • 14
  • +0/-0
Re: SMB share not working
« Reply #12 on: November 27, 2020, 05:36:48 PM »
In that case you may have another issue.

They should map with SMB3.

What errors have you got? You must have some in Windows, and probably SME too.

I got this to work by setting SMB v2 on Sme server and also having smb v1 and v2 enabled on the client side. I read here https://www.tgrmn.com/web/kb/item130.htm the highest version between the two will be used - when I do a Get-SmbConnection, I see that v2 is used, so I am not really sure why smb v1 needs to be enabled as well.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: SMB share not working
« Reply #13 on: November 27, 2020, 06:38:40 PM »
Assuming you ARE using Koozali SME server v10 then you should be able to connect with SMB v3

Show us:

Code: [Select]
cat /etc/redhat-release
This is a connection from my linux desktop to a test v10 server - note that thsi server is running the upstream Samba 4.10.16 but you should get the same with the version you have installed which is probably 4.6.x

Code: [Select]
[root@smev10a5v1 ~]# smbstatus

Samba version 4.10.16
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing             
----------------------------------------------------------------------------------------------------------------------------------------
20613   admin        admin        192.168.10.147 (ipv4:192.168.10.147:54854) SMB3_11           -                    partial(AES-128-CMAC)

Service      pid     Machine       Connected at                     Encryption   Signing     
---------------------------------------------------------------------------------------------
admin        20613   192.168.10.147 Fri Nov 27 17:33:49 2020 CET     -            -


There should be no reason you cannot connect.

So show us what you get on your server with smbstatus

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: SMB share not working
« Reply #14 on: November 29, 2020, 09:42:06 AM »
e-smith-samba update that is waiting for further testing and release facilitates mapping of shares etc, leave win10 smb1 disabled, update sme10 and map network drives as much as you want.

Want to browse as well, install the wsdd contrib.

No need to fiddle about changing conf files or windows default settings
« Last Edit: November 29, 2020, 09:43:56 AM by TerryF »
--
qui scribit bis legit