On 07/31/2017 09:22 AM, John Andersen wrote:
On 07/31/2017 04:14 AM, Carlos E. R. wrote:
You have two avenues: make samba work even if there is no networking interface active. I have no idea if this is possible.
Get a network interface working on eth. While traveling with my laptop, I used to often encounter this.
Frequently I do not bother to connect to any network, because I'm going to be working on software for my day-job, which requires a couple windows virtual machines. Of course the Linux machine itself was the samba server for these virtual machines.
I found I had to start at least one VMWare machine to get vmware to start it's network so that Adapter Vmnet(x) would appear and make samba happy.
I could also user VMware's "host only" networking for this, which causes a new adapter to appear on the host but which needs no external connection.
Virtualbox also supports a Host Only Adapter that operates similarly.
You just have to add this adapter to the list of adapters that Samba services in smb.conf
Somewhere along the way Vmware Workstation gained the ability to start its network at boot time and the problem pretty much vanished. The thing to keep in mind about samba is that unless you have a "bind interfaces only" statement in the smb.conf (I do) to restrict smbd, it automatically binds to ALL interfaces, configured or not. use lsof to check it for yourself.
Keep in mind, ifconfig, if executed with NO parameters only displayed interfaces that are configured. ifconfig -a will show all interfaces, configured or not. If the drivers for the interfaces on eth0 and eth1 are loaded and eth0 is NOT configured, but eth1 IS, eth0 will not display... But it IS present and available to be bound to. This is why you can use tcpdump and wireshark on unconfigured interfaces (not to mention connecting more exotic things like openvswitch and constructing bridges using interfaces without IP addresses). One final thing, configured does NOT mean a cable is plugged in and connected to a hub or switch. That is indicated by a "link up" state. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org