2018-03-31 13:19 GMT+02:00 unman <un...@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

Reply via email to