Skip to content

Network shares

SMB and NFS are Windows’ job, not WinMux’s. Windows speaks SMB natively and NFS through an optional component, and once a share is reachable it is an ordinary path. A file-browser pane will browse it, a terminal pane will start in it, and a session will restore to it.

(SFTP and FTP are the other way round — Windows has no client to delegate to, so WinMux speaks those itself. See Profiles.)

So this page is mostly about Windows, and about the four things that actually go wrong.

Any of these work, and WinMux does not care which you use:

Terminal window
# A drive letter that comes back after a reboot.
net use Z: \\nas.example.com\media /persistent:yes
# The same thing, PowerShell's way.
New-PSDrive -Name Z -PSProvider FileSystem -Root \\nas.example.com\media -Persist
# Or map nothing at all and use the UNC path directly.

Mapping a drive letter is optional. A UNC path works everywhere a path works in WinMux — type \\nas.example.com\media into a file-browser pane’s address bar and press Enter, or set it as a profile’s working directory.

To save the password, let Windows save it, in the store built for that:

Terminal window
cmdkey /add:nas.example.com /user:media-user /pass

WinMux never sees it and never stores it. See Profiles for the same policy applied to SSH and Remote Desktop.

The NFS client is an optional Windows component, and it is not present on Home editions. Check what your machine offers and turn it on from an elevated prompt:

Terminal window
Get-WindowsOptionalFeature -Online -FeatureName *NFS*
Enable-WindowsOptionalFeature -Online -FeatureName ClientForNFS-Infrastructure -All

The exact feature names vary by edition, which is why the first command is there. Once installed, mount.exe, umount.exe and showmount.exe are in System32.

Mounted, it is a drive letter like any other, and everything below applies to it too.

In a file-browser pane — type the path into the address bar and press Enter. UNC paths and mapped drives both work, the current directory and selection are saved into the session, and a share that is unreachable at restore time falls back to a local directory with an explanation without forgetting where you were. Reconnect, reopen, and you are back on the share.

As a profile’s working directory — set \\nas.example.com\media or Z:\ as the working directory of a terminal profile. See Profiles.

Navigating up from a share root stops there. \\nas.example.com\media has no parent the way C:\ has none; WinMux says so rather than doing something surprising.

Modern Windows tightened two SMB defaults, and between them they account for most failures against a NAS or a Samba server. Check what your machine is actually doing:

Terminal window
Get-SmbClientConfiguration |
Select-Object RequireSecuritySignature, EnableInsecureGuestLogons

RequireSecuritySignature : True — the client requires SMB signing. A server that does not offer it is refused. Fix it on the server if you possibly can; every current NAS firmware and every supported Samba release supports signing.

EnableInsecureGuestLogons : False — guest access is refused. A share with no authentication will not open. Give the share a real user instead.

Both defaults exist because the alternatives are downgrade-attackable. Turning either off weakens every SMB connection the machine makes, not only the one that is failing, so treat it as a last resort on a network you control — and know that is the trade you are making.

Other things worth checking, in order of how often they are the answer:

  • net use reports the real error. Run it by hand; the message is more specific than a file browser can be.
  • Credentials are cached per server, not per share. cmdkey /list shows what Windows is reusing; cmdkey /delete:nas.example.com clears a stale one.
  • You cannot hold two sessions to one server as two different users. Windows refuses with ERROR_SESSION_CREDENTIAL_CONFLICT. Disconnect the first (net use \\server /delete) or reach the server by another name.
  • SMB1 is gone, and is not coming back. A device that offers nothing newer needs replacing or isolating, not enabling.

Stated plainly so nobody waits for it:

  • No built-in SMB or NFS client. Mount it with Windows; WinMux browses the result.
  • SFTP and FTP are built in, because Windows has nothing to delegate to there. They are profiles like any other — see Profiles. SCP has no entry of its own: it cannot list a directory, and every server that speaks it speaks SFTP.
  • File transfer works, within one filesystem. Copy, cut, paste, rename, new folder and delete all work on a share exactly as they do locally — see Keyboard. Windows is doing the work, so a UNC path is just a path. What is not built yet is copying between two filesystems — dragging a file from an SFTP pane onto a local one.
  • No credential storage of its own, for a share or anything else. Windows Credential Manager holds it, and you can inspect and delete what is in there without trusting WinMux to do it.