[Pkg-samba-maint] Bug#893762: samba: installation fails when only loopback interface present.
Mathieu Parent
math.parent at gmail.com
Sat Mar 31 20:19:03 UTC 2018
2018-03-31 13:19 GMT+02:00 unman <unman at thirdeyesecurity.org>:
[...]
>
> At least three:
> 1. Where external interface is created when device is attached.
> 2. User wants to test samba configuration on non-networked device.
> 3. In virtualised environment like Qubes, where Template has no network,
> but VMs that use the template do.
nmbd could'nt work in those situations.
You can mask it before the installation using "systemctl mask nmbd"
(or read /usr/share/doc/*/README.policy-rc.d.gz if not using
systemd), but your install may not work properly.
> Probably more.
>
> I've tested a number of "network" services, and samba seems to be the
> only one that requires an external interface at time of installation.
nmbd is different because it needs to bind to a broadcast address (and
not localhost). smbd is not affected.
Maybe a solution would be to use "dh_installinit -psamba --name nmbd
--errorhandler nmbd_failure" in debian/rules and write an nmbd_failure
shell function to ignore the error if only the loopback interface is
up. Patch welcome!
Regards
--
Mathieu Parent
More information about the Pkg-samba-maint
mailing list