[SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
A_J_Jackson
Level 1
Level 1
Posts: 4
Joined: Wed Jul 04, 2018 11:25 am

[SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by A_J_Jackson » Wed Jul 04, 2018 12:10 pm

2 problems, probably related. New install of Mint 19. Samba installed. Trying to connect to office Windows network (simple workgroup sharing). In terminal smbtree shows the full expected network shares. They do not show in either file browser or printer set up - trying to connect to a network (windows) shared printer; I have tried both the graphical printer set up and CUPS browser interface. I can connect to a printer directly networked but not a shared printer on a Windows machine (that I could connect to with LM 18). I have never had trouble with previous versions of Mint. The shares I have set up on my computer (Mint 19) are accessible through other computers on the network. TX for any assistance.
Last edited by A_J_Jackson on Fri Jul 06, 2018 11:44 am, edited 1 time in total.

altair4
Level 19
Level 19
Posts: 9313
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 Network SAMBA shares not shownin File Manager

Post by altair4 » Wed Jul 04, 2018 12:57 pm

Can't comment on the Printer issue but there have been changes in samba since Mint18.

Long version: Mint 19 and Samba File Sharing Changes

Short version:

Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one:

Code: Select all

client max protocol = NT1
Then reboot.

If you have Win10 on your network and it has disabled SMB1 on the server side you will not be able to connect to it.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

A_J_Jackson
Level 1
Level 1
Posts: 4
Joined: Wed Jul 04, 2018 11:25 am

Re: Mint 19 Network SAMBA shares not shownin File Manager

Post by A_J_Jackson » Wed Jul 04, 2018 2:14 pm

adding
client max protocol = NT1 to conf file did not help.

If I have workgroup=WORKGROUP (in conf)
then in file manager I see a WORGROUP folder with only my own computer shares.
If I have workgroup= XYZ (name of office workgroup) then it is back to blank screen
in the Windows Shares folder of the file manager.
I did a full reboot after each alteration to samba.conf

altair4
Level 19
Level 19
Posts: 9313
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 Network SAMBA shares not shownin File Manager

Post by altair4 » Wed Jul 04, 2018 2:23 pm

Assuming this is a regular old workgroup thing we are talking about it would be best to go through the checklist: viewtopic.php?f=42&t=88146&start=0
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

altair4
Level 19
Level 19
Posts: 9313
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 Network SAMBA shares not shownin File Manager

Post by altair4 » Wed Jul 04, 2018 4:09 pm

I've decided all on my own to post your response here for consistency sake:
A_J_Jackson wrote:
Wed Jul 04, 2018 3:49 pm
Yes, have followed that. Why does the full tree of samba shares display in the terminal with command smbtree but I can't access them in file manager or printer set up? It has only happened with Mint 19, prior versions have always been file. None of the network machines are running Win10, only XP to Win 7, plus 1 that is Mint 18. The shares on the (new) Mint 19 are accessible to the machine with Mint 18 - directly in Network connections without opening 'Windows Network'. The Mint 19 shares also show on the Mint 18 'Windows Network/XXGROUP folder. So my Mint 19 is sharing to the outside network but no applications on Mint 19 can see the outside network. Firewall on Mint 19 is disabled. Remember that smbtree does display, accurately, the network shares.

Thank you
You write as though you think Desktop Linux is the result of an integrated development process where all of the parts are owned and accountable to one master. It is not.

smbtree is owned by Samba and they fixed smbtree by having it drop down to SMB1 ( NT1 ) to do its scan of the network. Network browsing in the file manager is done by gvfsd-smb-browse which is owned by Gnome. I doubt they even talk to each other.

Samba sharing in an all Linux network or one with macOS involved is a whole other situation. Network browsing there works by default because it doesn't use any of the old Windows netbios process. It uses avahi.

Since Mint to Mint works it's not a samba file sharing problem it is a netbios name resolution problem. Have you tried to access the share on Windows by it's ip address?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

A_J_Jackson
Level 1
Level 1
Posts: 4
Joined: Wed Jul 04, 2018 11:25 am

Re: Mint 19 Network SAMBA shares not shown in File Manager - SOLVED

Post by A_J_Jackson » Fri Jul 06, 2018 9:56 am

Finally have all working. On a whim I started computer with a live boot version of Mint 18.3. All networking, printer detection worked so I copied the smb.conf file from its /etc/samba folder. Then rebooted to the installed Mint 19 (where networking/printer detection did not work) and replaced the /etc/samba/smb.conf with the version copied from the Linux mint 18.3. I then rebooted the system. Upon reboot network printer detection worked but file manager browsing did not. I then added the line

client max protocol = NT1
after
WORKGROUP=WORKGROUP

rebooted the system again and everything worked, including file manager browsing.

Gaugamela
Level 1
Level 1
Posts: 36
Joined: Wed Dec 21, 2011 11:59 am

Re: Mint 19 Network SAMBA shares not shown in File Manager - SOLVED

Post by Gaugamela » Fri Jul 13, 2018 5:54 am

A_J_Jackson wrote:
Fri Jul 06, 2018 9:56 am
Finally have all working. On a whim I started computer with a live boot version of Mint 18.3. All networking, printer detection worked so I copied the smb.conf file from its /etc/samba folder. Then rebooted to the installed Mint 19 (where networking/printer detection did not work) and replaced the /etc/samba/smb.conf with the version copied from the Linux mint 18.3. I then rebooted the system. Upon reboot network printer detection worked but file manager browsing did not. I then added the line

client max protocol = NT1
after
WORKGROUP=WORKGROUP

rebooted the system again and everything worked, including file manager browsing.
I did this same thing and it also worked.
However, when I try to specificy a specific samba location (my workplace samba share, which is password protected) I cannot connect to it. The same goes for printers. It says that user is denied and does not recognize my username.

GlammaGeek
Level 1
Level 1
Posts: 1
Joined: Sat Jul 14, 2018 10:54 pm

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by GlammaGeek » Sat Jul 14, 2018 11:21 pm

I registered just to say THANKS because this also worked for me. I was on the verge of asking for help but I'm the kind of girl who likes to try and figure it out on her own. That's how I came across this solution.

I'm running 18.3, XFCE but my issue was exactly the same. Meaning that I could connect to network shares if I entered the IP address, but I could not browse the workgroup in my file manager (Thunar). I got a new computer so I'd renamed the original smb.conf to old-smb.conf and copied the smb.conf from the old rig.

Nothing worked for browsing the workgroup until I renamed the original version from old-smb.conf back to smb.conf. Then, I renamed the copied file from smb.conf to old_smb.conf. I also entered my correct workgroup name, then copied and pasted the share information from the bottom of the smb.conf file from the old rig. After rebooting, everything worked!!! YAY!!!

For the record, before I restored the original smb.conf, no results would show up when I ran smbtree in the terminal. After restoring the original file and including the above-mentioned info from the old, smbtreee worked like a charm!

I'm super happy. Now that I've finally registered, I'll try not to be a stranger...LOL Thanks much for helping a poor GI down on her luck.

Gaugamela
Level 1
Level 1
Posts: 36
Joined: Wed Dec 21, 2011 11:59 am

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by Gaugamela » Mon Jul 16, 2018 6:26 pm

Well, the samba shares at my work disappeared again today. :(

pratikmahamuni
Level 1
Level 1
Posts: 1
Joined: Fri Aug 03, 2018 7:19 am

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by pratikmahamuni » Fri Aug 03, 2018 7:21 am

It worked for me also.
Thanks a lot

Polymorph
Level 1
Level 1
Posts: 24
Joined: Tue Jan 31, 2012 8:11 pm
Location: NSW, Australia

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by Polymorph » Wed Aug 15, 2018 1:27 am

@A_J_Jackson

This worked for me too.

Thanks

mb7
Level 1
Level 1
Posts: 10
Joined: Sat Feb 10, 2018 11:42 pm

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by mb7 » Sun Aug 19, 2018 10:59 pm

Can somebody explane me, why nobody fix this?
Why is samba drop in LM19?

altair4
Level 19
Level 19
Posts: 9313
Joined: Tue Feb 03, 2009 10:27 am

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by altair4 » Mon Aug 20, 2018 6:40 am

mb7 wrote:
Sun Aug 19, 2018 10:59 pm
Why is samba drop in LM19?
I explained the "why" in my HowTo:
Samba changed the maximum client smb dialect that it can use from SMB1 to SMB3 so that it could connect to servers that have disabled SMB1 like Win10. This inadvertently disables netbios host discovery so if you go to Network > Windows Network you will see something like Folder is Empty in Ubuntu and just a blank screen in Cinnamon, Xubuntu, etc,..

You can restore it's discovery ability by editing /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one:

Code: Select all

client max protocol = NT1
And then reboot. Yes, reboot.

But: If you set the max back to NT1 you will be able to see a server that has disabled SMB1 ( Win10 ) but you will not be able to access it through the file manager.
mb7 wrote:
Sun Aug 19, 2018 10:59 pm
Can somebody explane me, why nobody fix this?
That is a more complex question. It's not going to be Mint or Ubuntu or even Debian that fixes this because they know nothing about samba. I think - at it is admittedly a guess on my part - that the culprit is gvfsd-smb-browse. Gnome owns that and they have yet to understand the nature of the problem, why it matters that it should be fixed, or their responsibility in fixing it.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

mb7
Level 1
Level 1
Posts: 10
Joined: Sat Feb 10, 2018 11:42 pm

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by mb7 » Fri Aug 24, 2018 11:41 pm

What I mean is... How it works without any issue on Mint 17 and 18 but not on 19?

Polymorph
Level 1
Level 1
Posts: 24
Joined: Tue Jan 31, 2012 8:11 pm
Location: NSW, Australia

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by Polymorph » Sat Aug 25, 2018 11:10 pm

I agree.
I have not had any problems until LM 19. Linux is becoming more and more popular and should work OTB. The OS has been around for a long time now and we should be past having to edit smb.config like we used to 10 years ago.

User avatar
catweazel
Level 17
Level 17
Posts: 7770
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by catweazel » Sat Aug 25, 2018 11:31 pm

Polymorph wrote:
Sat Aug 25, 2018 11:10 pm
I agree.
I have not had any problems until LM 19.
I don't agree. You seem to not understand how the linux ecosystem works. It has absolutely nothing to do with Mint, it's what is called an upstream problem. That means a team that provides support and maintenance for an application is further up the chain in the ecosystem. Besides, these kinds of issues are easily rectified by doing a simple search or by actually reading the words written above by @altair4.
Linux is becoming more and more popular and should work OTB. The OS has been around for a long time now and we should be past having to edit smb.config like we used to 10 years ago.
And Windwoes should be past having a registry. Right. I can see that happening... never.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

crustycurmudgeon
Level 1
Level 1
Posts: 4
Joined: Sun Sep 06, 2015 4:10 pm

Re: [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager

Post by crustycurmudgeon » Tue Aug 28, 2018 7:46 am

Just thought I'd muddy the waters here a bit more; Several weeks ago, soon after stable release, I ran the Mint 18.3 => Mint 19 upgrade process and it was absolutely flawless. I was SO psyched, until I found that no workgroup pc's or showed up in the file manager... My local lan is mixed Mac/Windows/Linux with two shared storage servers.

I posted a query at Nemo cannot see network computers after Mint 19 upgrade and was referred to the samba post at Mint 19 and Samba File Sharing Changes. Finally, I also reviewed the HowTo: Samba Browsing Problems Checklist just to be sure.

As noted in my post, I did enable the changes as instructed in Mint 19 and Samba File Sharing Changes, but these had NO EFFECT on the new Mint 19 upgrade. I also tried copying the smb.conf file from my working Mint 18.3 system backup, but still no joy, so I restored my system backup and went on with Mint 18.3.

Several weeks later, I decided to take the plunge again and see if I couldn't get things working. I ran the upgrade installation and after the final reboot, I hesitantly opened Nemo and was pleasantly surprised to find that I can see and browse all my LAN workgroup shares without difficulty.

What was different?

After taking a deeper look, I saw that my previous change to the smb.conf file had been left after returing to Mint 18.3, so the additional switch to restrict to NT1 was already in place when I did the upgrade. I can't explain why, but I am convinced that having the smb.conf already configured with "client max protocol = NT1" BEFORE the upgrade was the key. I absolutely know that I did everything correct with the first upgrade and the changes I made to the smb.conf file after upgrading made did not resolve my inability to browse and see workgroup systems and shares (yes, I rebooted).

FWIW, and considering the confusion and large number of posts about this issue here, I think it's probably a good idea to recommend that the changes to the smb.conf be made BEFORE the upgrade. It's clear that some configurations are finding that doing it after doesn't work.

rudiklein
Level 1
Level 1
Posts: 1
Joined: Wed Nov 21, 2018 12:19 pm

Re: Mint 19 Network SAMBA shares not shownin File Manager

Post by rudiklein » Thu Nov 22, 2018 1:15 pm

YESSS! The NT1 did the trick!

Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one:

Code: Select all

client max protocol = NT1
Then reboot.

Post Reply

Return to “Other networking topics”