Results 1 to 9 of 9

Thread: Samba With Windows shares

  1. #1

    Default 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.


    [IMG][/IMG][IMG][/IMG]

  2. #2

    Default Re: Samba With Windows shares

    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.

  3. #3

    Default Re: Samba With Windows shares

    Quote Originally Posted by joostvanrooij View Post
    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

  4. #4

    Default Re: Samba With Windows shares

    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?

  5. #5

    Default Re: Samba With Windows shares

    Quote Originally Posted by joostvanrooij View Post
    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.

    [IMG][/IMG]

  6. #6

    Default Re: Samba With Windows shares

    Quote Originally Posted by Snowman0001 View Post
    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.

    [IMG][/IMG]
    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:~ #

  7. #7

    Thumbs up Re: Samba With Windows shares

    Quote Originally Posted by Snowman0001 View Post
    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?

  8. #8

    Default Re: Samba With Windows shares

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

  9. #9
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: Samba With Windows shares

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •