Page 1 of 1

'Network' not displaying shares...

PostPosted: Aug 30th, '11, 12:19
by omelette
Something else that I've broken. When I first installed Mageia sharing worked fine, so that when I clicked 'Network', then double-clicked 'Samba Shares' I'd have displayed both my share-server & the received shares. When I now double-click Samba Shares, I am invariably told that;

Code: Select all
Unable to find any workgroups in your local network. This might be caused by an enabled firewall.


Note that as this computer isn't connected directly to the internet, the firewall is switched off. This doesn't seem to be a permissions thing either - I can run Dolphin from the root-console and am presented with the same message. The rub is that file-sharing itself works fine - as root I can run 'Access Windoes (SMB) shared drives and directories' and it finds, displays and lets me mount shares without a problem.

I just cannot access shares as a user (or root) via the Network->Samba Shares route.

Re: 'Network' not displaying shares...

PostPosted: Aug 30th, '11, 16:40
by omelette
Ok, I've made a discovery of sorts, whenever I run 'Access Windows shared drives and directories' as root - it's not even necessary do a search for available shares - then as a 'normal user' I am able to see available-servers from Samba Shares. This cannot be 'normal', after all, even root cannot see the available-servers (as I outlined above) unless he first does what I've just indicated, never mind ordinary users! I hoped it might be a privileges-issue so added every group available to my user-name - no difference.

Is this another Mageia bug or am I doing something wrong?

Re: 'Network' not displaying shares...

PostPosted: Aug 31st, '11, 00:21
by doktor5000
As root, run
Code: Select all
smbclient -L //$(hostname)
and enter your root password again. Please post the output here.

Re: 'Network' not displaying shares...

PostPosted: Sep 1st, '11, 18:19
by omelette
I appreciate the response. As hard as I've tried, I cannot now get either pc that I installed Mageia on to do it! :oops: The second Mageia install was a direct result of not being able to sort it on the first one. With the new install, it worked perfectly for a while then started doing the exact same thing as the first pc was doing - hence the origins of this thread!

I'll leave things be until/unless it crops up again...

Re: 'Network' not displaying shares...

PostPosted: Sep 1st, '11, 18:27
by doktor5000
omelette wrote:As hard as I've tried, I cannot now get either pc that I installed Mageia on to do it! :oops:

You mean they won't run that command? What was the exact output/error?

Re: 'Network' not displaying shares...

PostPosted: Sep 15th, '11, 23:02
by omelette
doktor5000 wrote:
omelette wrote:As hard as I've tried, I cannot now get either pc that I installed Mageia on to do it! :oops:

You mean they won't run that command? What was the exact output/error?


It took a while to re-occur but it's back and here is what the output is;

Code: Select all
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.8]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (omelette-laptop)
        Public          Disk      public (R&W)
        pdf-gen         Printer   PDF Generator (only valid users)
        print$          Disk
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.8]

        Server               Comment
        ---------            -------
        OMELETTE-LAPTOP      omelette-laptop

        Workgroup            Master
        ---------            -------
        WORKGROUP            OMELETTE-E59210


Again, I double-click the samba-shares icon and I no longer see a 'Workgroup' icon, and a second or so later am told there are no workgroups found in your local network, and that it might be caused by an enabled firewall.

Re: 'Network' not displaying shares...

PostPosted: Sep 15th, '11, 23:55
by doktor5000
omelette wrote:
Code: Select all
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.8]

        Server               Comment
        ---------            -------
        OMELETTE-LAPTOP      omelette-laptop

        Workgroup            Master
        ---------            -------
        WORKGROUP            OMELETTE-E59210



I don't know about MCC, but the output shows your samba shares are reachable.

Re: 'Network' not displaying shares...

PostPosted: Sep 24th, '11, 01:13
by omelette
Excuse the delay. Yeah, that's what I thought too, unfortunately when it occurs, all I get is that message telling me that it's probably a firewall-issue. I had a near-identical problem with Fedora15 - via Nautilus I could not browse the remote pc, from the command-line it worked perfectly! I just gave up on it seeing that (imo) Gnome3 sucks! As for Mageia/Dolphin/network-problem, it's working again. Damn annoying the way it just stops working for no obvious reason though.

Re: 'Network' not displaying shares...

PostPosted: Jan 18th, '16, 00:27
by isaiah36
Samba shares not accessible from Windows 7. This was working fine before but it is broken for some unknown reason. The LAN IP is unchanged. Here is my output:

Code: Select all
[root@localhost isaiah]# smbclient -L //$(hostname)
Enter isaiah's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.25]

   Sharename       Type      Comment
   ---------       ----      -------
   IPC$            IPC       IPC Service (localhost)
   pdf-gen         Printer   PDF Generator (only valid users)
   print$          Disk     
   isaiah          Disk      Home Directories
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.25]

   Server               Comment
   ---------            -------
   ASL-T400             
   LOCALHOST            localhost

   Workgroup            Master
   ---------            -------
   WORKGROUP            LOCALHOST


The system named ASL-T400 is the one that needs to access the Samba shares. It would be nice to access the Workgroup shares inside Dolphin or Caja, but I can live without it. The MCC applet does not display any mountable shares at all.

Re: 'Network' not displaying shares...

PostPosted: Jan 19th, '16, 10:08
by magfan
Some time ago I had similar problems with mounting directories on Windows 7. Maybe you can solve your issue with a similar approach I described here: https://forums.mageia.org/en/viewtopic.php?f=25&t=5551

The short version is:
1. make sure the directory on your NAS is "searchable" and "public"
2. mount your NAS directory from Mageia with the option "sec=ntlm"

Re: 'Network' not displaying shares...

PostPosted: Jan 19th, '16, 14:24
by isaiah36
Thanks, magfan. After reboot of both systems everything seems fine now. It could be something to do with the router providing DHCP. Mysterious.

The Mageia 5 system had crashed while playing a 1080p video before the Samba problem showed up, so maybe it needed a clean reboot.

Re: 'Network' not displaying shares...

PostPosted: Feb 11th, '16, 06:39
by isaiah36
The Samba server has become flaky. The shares go offline for 1-2 minutes, every 10-15 minutes. Then they come back on their own.

Re: 'Network' not displaying shares...

PostPosted: Feb 25th, '16, 09:35
by magfan
Just two days ago I had a similar problem with a system running Windows 7. In my case I could solve it by adjusting the following settings in the current profile (Network and Sharing Center: Change advanced sharing settings):
    turn on network discovery
    turn on file and printer sharing