winbind does not work after reboot on Mint 19 / Ubuntu 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Unknown
|
Unknown
|
|||
samba (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
[copied from the Linux Mint forum]
Just installed Mint 19 and noticed a WINS name resolution buglet. I assume this applies to Ubuntu 18.04 as well.
Windows, i.e., NetBIOS, name resolution is on Linux provided for by the "winbindd" daemon, part of the Samba suite. One does not need either of the other two Samba daemons "smbd" and "nmbd" when NetBIOS name resolution is all you need: sudo apt-get install libnss-winbind (which additionally pulls in "winbind" itself) and adding "wins" before "dns" to the "hosts" line of /etc/nsswitch.conf is enough.
While this works fine directly after installation it does no more after reboot due to a systemd unit file dependency issue. The standard /lib/systemd/
You can solve things by copying the unit file to its corresponding directory under /etc and editing it,
sudo cp /{lib,etc}
xed admin:/
to change the line
After=
to the two lines
After=
Wants=
After save and reboot you will have NetBIOS name resolution functional without all of the rest of Samba running.
Note that although this fix is not needed when you do have "samba" itself installed the above is still fine also the
Thanks for filing this bug in Ubuntu.
What do you mean by "does not work", exactly?
Doesn't the network come up eventually? Or is this a desktop machine where the network is wireless and only available after someone logs in?
Please show exactly what is not working, your configuration files, and also please provide logs.