2

This question might sound crazy, and maybe it is. My folder share can only be accessed through the ip address which corresponds to my wireless adapter. If someone tried to access the share through the ip address which corresponds to the wired adapter, they won't see it.

I have a samba share set up like the following:

[MyShare]
    path = /media/MyShare
    available = yes
    writeable = yes
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

The global section contains

wins support = yes

Recently I have had to disable my wireless adapter. Unfortunately, there is no longer a way to access this share. I was under the impression samba would allow access through any network connection. Does anyone know the reason for this behavior? Do I need to explicitly tell Samba which IP address or network adapter it should be using?

1 Answer 1

3

You can specify which adapter samba can bind :

in /etc/samba/smb.conf

add the following under global section :

[global]
    interfaces =  ( choose your adapter maybe wlan0 )
    bind interfaces only = yes

The interface you write will be used by samba , you can specify more than one Adapter.

2
  • What's the syntax to add more than one interface? It looks like I can only access the network over LAN, and not any WiFi network.
    – NoVa
    Feb 10, 2020 at 0:49
  • 1
    @NoVa Add them separated by space: interfaces = wlan0 eth0 lo Mar 6, 2022 at 17:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .