Samba Shares for Modern (and a Few Old) Machines

The mini PC from Building a Home Server runs Samba for "every Windows and Linux machine on the network" — that's the easy 90% of this article. The more interesting question is what happens when something genuinely old, like real MS-DOS or Windows for Workgroups, tries to join the same share. The honest answer is: it's possible, but it's no longer the path Samba wants you to take, and it's worth understanding why before you go chasing it.

The modern baseline

Out of the box, Ubuntu Server's Samba (standalone server mode, no domain, no AD) already does the right thing for Windows 10/11 and current Linux: modern SMB versions are negotiated automatically, and there's nothing specific to configure for that side to just work. Two settings worth knowing about because they shape everything else on this page:

  • map to guest = bad user — already Ubuntu's default. An unrecognised username falls back to the guest account instead of being refused outright, which is what lets a share be reachable without a matching Linux user on the box.
  • NetBIOS is off by default. Current Ubuntu ships disable netbios = yes and doesn't start nmbd unless you ask for it. NetBIOS name resolution (broadcast name lookups on ports 137/138, alongside the old SMB session service on port 139) is exactly what very old clients rely on instead of DNS — and it's the first thing you'll need to turn back on for them.

What about DOS and Windows 3.11?

Real MS-DOS (with Microsoft's old LAN Manager-style network client) and Windows for Workgroups 3.11 only speak the earliest SMB dialects — CORE, COREPLUS, LANMAN1, LANMAN2, and at best NT1 — over classic NetBIOS. Modern Samba can still speak that language, but it's been pushing hard in the other direction for years: as of Samba 4.11, lanman auth and encrypt passwords are deprecated outright, and the project has said plainly that SMB1 is officially deprecated and might be removed step by step in the years following. It isn't gone yet, but every release note is a reminder that it's on borrowed time.

The good news: on current Ubuntu, the Samba package still has SMB1 server support built in (you can confirm this yourself with smbd -b | grep -i smb1 — look for WITH_SMB1SERVER), it's just switched off by the defaults. Turning it back on, globally, in /etc/samba/smb.conf:

[global]
    disable netbios = no
    server min protocol = NT1
    ntlm auth = yes
    lanman auth = yes
sudo systemctl enable --now nmbd
sudo testparm
sudo systemctl restart smbd nmbd

testparm is worth running after any change like this — it parses your actual smb.conf and will tell you plainly if something you typed doesn't mean what you think it means.

A few honest caveats, rather than a tidy "just do this":

  • These are global settings. smb.conf doesn't give you a clean way to say "allow NT1 only for this one ancient PC" — relaxing the minimum protocol relaxes it for every client that connects.
  • lanman auth and client plaintext auth are both already marked for eventual removal. A tutorial built around them today may simply stop working after a future Samba update, through no fault of your configuration.
  • The truly ancient end of the spectrum — plain CORE or COREPLUS, with no LANMAN dialect at all — isn't something current Samba's server max protocol list even offers on the server side. If a client is that old, Samba may not be able to meet it at all, regardless of configuration.
  • DOS networking like this also assumes the DOS machine already has a working TCP/IP or NetBEUI stack and a supported network card with a packet driver in the first place — getting that far is its own project, well outside Samba's config file.

Why the Atari ST side uses TNFS instead

This is the actual reason the home server runs both Samba and TNFS, rather than trying to make Samba cover everything: a stock Atari ST has no SMB client at all, and the realistic path to one (STinG, a packet driver, and a matching SMB implementation) is a bigger undertaking than the machines this site is mostly about are set up for. ACSI2TNFS, SideTNFS and TheHulk all speak TNFS precisely because it was designed for exactly this situation — a small, simple, UDP-based protocol that doesn't ask a constrained retro machine to do very much to use it, and isn't sliding toward deprecation the way SMB1 is.

So in practice: Windows and Linux machines get Samba, genuinely old DOS/Windows 3.11 boxes can get Samba too if you're willing to live with settings that are explicitly on their way out, and the Atari ST side gets TNFS and doesn't need any of the above at all.