Skip to content

SMB and NFS shares

The tab of an SMB or NFS session is a mount console. It prints the URL, DNS, a TCP connect to the port, then calls NetFSMountURLSync (the macOS NetFS framework, the same one Finder uses). A failure is printed with the NetFS status in words and its number, for example mount failed: authentication failed: wrong user, password or domain (EAUTH) [NetFS errno 80]. Fields: SMB and NFS sessions.

This page covers macOS. On Windows the console calls WNetAddConnection2W and prints Win32 error codes with a hint; see SMB and NFS sessions → Windows.

Message Cause Fix
… SMB needs TCP port 445 open on <host> (firewall, or SMB disabled on the server?) The TCP connect to the SMB port failed. The line above it has the system error. Port 445 on the server and the path; for a LAN address see macOS local network access.
… Continuing: NFS may still work over UDP or through the portmapper (111/tcp). The TCP connect to the NFS port (2049 by default) failed; NFS goes on anyway. If the mount then fails: rpcinfo -p <host> shows the RPC services.
Printed text Meaning and what to check
authentication failed: wrong user, password or domain (EAUTH) SMB: up to 3 passwords are asked; a saved password that fails is not used again in this attempt. Check the domain field and the account on the server.
share or export not found (ENOENT) SMB: the share name (smbutil view //<user>@<host> lists shares). NFS: the export path (showmount -e <host>).
access denied by the server (EACCES) The account has no rights on the share, or the NFS export does not allow this client.
operation not permitted (EPERM); NFS: the export may refuse this client's address or require a privileged source port See NFS: refused.
the server did not answer in time (ETIMEDOUT) The server stopped answering after the TCP connect: firewall rules for other ports (NFS mountd), an overloaded server.
connection refused (ECONNREFUSED), no route to host (EHOSTUNREACH) As in the TCP check above.
the server supports none of the client's protocol versions (ENETFSNOPROTOVERSSUPP) The server and macOS have no SMB or NFS version in common.
the server supports none of the client's authentication methods (ENETFSNOAUTHMECHSUPP) The server’s authentication settings (for example NTLM restrictions).
the server does not allow guest access (kNetAuthErrorGuestNotSupported) Empty login = guest; enter a user.
the login worked but no share is available to this user (ENETFSNOSHARESAVAIL) Share permissions.
the password must be changed first (ENETFSPWDNEEDSCHANGE), the new password violates the server's policy (ENETFSPWDPOLICY) Change the password on the server or domain.
the account is restricted, e.g. disabled or outside its logon hours (ENETFSACCOUNTRESTRICTED) Account settings in the directory.
NFS: the server does not run the mount/NFS RPC program (EPROGUNAVAIL), NFS: RPC program version mismatch (EPROGMISMATCH) rpcinfo -p <host>: mountd and nfs with version 3 or 4.
not supported by the server or the protocol version (ENOTSUP) An option the server does not support.
invalid URL or option (EINVAL) macOS refused the URL or a mount option; check the share or export path in the session.
the mount failed (kNetAuthErrorMountFailed); see Console.app, process NetAuthSysAgent / mount_smbfs / mount_nfs macOS gives no reason; it is in the system log: log show --last 5m --predicate 'process == "NetAuthSysAgent" OR process == "mount_smbfs" OR process == "mount_nfs"'.
cancelled (userCanceledErr) The mount was cancelled.

After a failed NFS mount the console adds:

NFS <host>:/<export>: check on the server `showmount -e <host>` (is this Mac's address allowed?) and the export options; Linux servers with `secure` (the default) need a privileged source port: add `insecure` to the export, or `nfs.client.mount.options = resvport` to /etc/nfs.conf on this Mac
  • Check: showmount -e <host> from this Mac lists the exports and allowed clients; on the server exportfs -v shows secure/insecure.
  • Fix: allow this Mac’s address in /etc/exports (then exportfs -ra), and either insecure on the export or, on the Mac, nfs.client.mount.options = resvport in /etc/nfs.conf (needs sudo).

NFS has no password: with sec=sys the server trusts the uid and gid this Mac sends (printed in the console). Files then belong to whichever account has that uid on the server.

Message Meaning
Already mounted: <from> on <path> (owner uid <n>). Using it; KryoDesk will not unmount it when the tab closes. Finder, another tab or autofs mounted the share before.
This session is set to read-only, but the existing mount is READ-WRITE: … then Use the read-write mount anyway? [y/N] Unmount it first (Finder eject or umount <path>) to get a read-only mount.
The existing mount is logged in as <login>, not <user>: files are accessed with that account's rights. The share was mounted with another account.
NetFS says it is already mounted, but no matching entry is in the mount table (mounted under another host name or IP?); see mount in a terminal mount | grep -i <share> shows under which name it is mounted.
<path> was unmounted outside KryoDesk (Finder eject, umount, network loss), or another volume is mounted there now; the session ends. Checked every 5 s while the tab is open.
Message Fix
unmount <path>: Resource busy (os error 16) — files on the share are open (Finder, a terminal, an editor); it stays mounted. Close them, or type unmount force (open files lose unsaved data). lsof +D <path> lists the processes.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close