Samba With Windows shares

Hi all,

I had Samba seeing all my windows shares in Dolphin but now they have all disappeared. I had my Windows machines disconnected from the router but all settings are still the same. My Windows partition which i don’t use shows the shares under network right away so i know the setup there is fine.

Here is my Samba config file;

linux-4vl5:~ # cat /etc/samba/smb.conf
[global]
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = domain
workgroup = Workgroup
usershare allow guests = No

Share disabled by YaST

[netlogon]

linux-4vl5:~ #

I have put some screen shots below, i dont know what else to post as i am am barely a beginner.

](http://s769.photobucket.com/user/PAULAYALA123/media/snapshot1_zpsda5f011f.png.html)http://i769.photobucket.com/albums/xx340/PAULAYALA123/snapshot1_zpsda5f011f.png](http://s769.photobucket.com/user/PAULAYALA123/media/snapshot2_zps6e0c6ed0.png.html)http://i769.photobucket.com/albums/xx340/PAULAYALA123/snapshot2_zps6e0c6ed0.png

Generally speaking when using a workgroup

  • All “members”, either Windows or Samba, should have the same name for the workgroup set up.
  • Computers should not have duplicate computernames
  • All users should be configured on all hosts (with the same password for easy access to all shares)
  • Software firewalls on all computers should allow tcp port 139 inbound
  • At least one computer should have the role as “master browser”, but that will happen automatically in almost all cases

For more specificy advice please specify which computers run as servers and which run as clients.

Hi Joostvanrooij,

Thank you for your reply.
My Windows machine (server) has the name workgroup setup and as far as i can see so does my Linux machine (client).
Both machines done have the same name.
I never needed a password before, sharing is setup as password free on my Windows server.
I have disabled my firewall on my client (linux) and my server (Windows) does not have one.

As i said this worked seamlessly when i installed suse but seems to have stopped.

Is there any config files you need me to show you

Regards
Paul

What is the output when you enter the command “smbtree” in a console from your openSUSE box?

Do see any shared folders/printers when you open “\servername” using Windows explorer on the server itself?

Hello,

There seems to be no output from this command-

linux-4vl5:~ # smbtree
Enter root’s password:
linux-4vl5:~ # smbtree
Enter root’s password:

As you can see i can see the Files Music share on the server. I did have all those drives shared but i turned them off to try and get it working so usually there are more.

](http://s769.photobucket.com/user/PAULAYALA123/media/snapshot3_zps6fe12e7f.png.html)http://i769.photobucket.com/albums/xx340/PAULAYALA123/snapshot3_zps6fe12e7f.png

Hello,

While playing with this and starting and stopping the service i tried the command again and it produced a result which looks like it can see the share/

linux-4vl5:~ # systemctl start smb.service
linux-4vl5:~ # smbtree
Enter root’s password:
WORKGROUP
\SERVER-1
\SERVER-1\Users
\SERVER-1\K$ Default share
\SERVER-1\J$ Default share
\SERVER-1\IPC$ Remote IPC
\SERVER-1\I$ Default share
\SERVER-1\H$ Default share
\SERVER-1\G$ Default share
\SERVER-1\Films Music
\SERVER-1\E$ Default share
\SERVER-1\D$ Default share
\SERVER-1\C$ Default share
\SERVER-1\ADMIN$ Remote Admin
\LINUX-4VL5 Samba 4.1.3-3.12.1-3127-SUSE-oS13.1-x86_64
linux-4vl5:~ #

And now it works… I changed the guests part in SMBconfig to yes to no, could this be the error. And why would this all of a sudden break?

Actually it does not work, i can see workgroup in samba shares but it gets timed out.

On 2/23/2014 7:06 AM, Snowman0001 wrote:
>
> Hi all,
>
> I had Samba seeing all my windows shares in Dolphin but now they have
> all disappeared. I had my Windows machines disconnected from the router
> but all settings are still the same. My Windows partition which i
> don’t use shows the shares under network right away so i know the
> setup there is fine.
>
> Here is my Samba config file;
>
> linux-4vl5:~ # cat /etc/samba/smb.conf
> [global]
> add machine script = /usr/sbin/useradd -c Machine -d
> /var/lib/nobody -s /bin/false %m$
> domain logons = No
> domain master = No
> security = domain
> workgroup = Workgroup
> usershare allow guests = No
>
> ## Share disabled by YaST
> # [netlogon]
> linux-4vl5:~ #
>
> I have put some screen shots below, i dont know what else to post as i
> am am barely a beginner.
>
<snip
>
>
The parameter “security = domain” should only be used for a member server of a Samba3 or NT style domain. Let Samba
just use the default value of “security = user”. See: man smb.conf.

I would suggest you follow the guide given here: http://swerdna.dyndns.org/suselanprimer.html. It is long in the tooth
and there are a few minor differences in YaST but the smb.conf should work well for a simple workgroup.

P.V.
“We’re all in this together, I’m pulling for you” Red Green