Pcornel
Technology Comparisons

NFS vs SMB

Compare the two common network file-sharing protocols.

DimensionNFSSMBWhat it means in practice
Typical clientsLinux and Unix; VMware datastores.Windows; also macOS and Linux.Choose by the clients that will mount the share.
IdentityUID/GID numbers (NFSv3) or Kerberos principals (NFSv4 with sec=krb5).User accounts, usually Active Directory with Kerberos.Mismatched UIDs cause permission problems on NFS.
PortsTCP 2049 (NFSv4); NFSv3 also needs rpcbind and helper ports.TCP 445.NFSv4 is easier through firewalls than v3.
Locking and stateNFSv4 is stateful with leases; v3 uses a separate lock manager.Stateful sessions with oplocks/leases.Client crashes can leave locks until leases expire.
PermissionsPOSIX mode bits; NFSv4 ACLs.NTFS ACLs plus share permissions.Effective access is the most restrictive of share and file permissions on SMB.
Verificationshowmount -e (v3) or mount -t nfs4; nfsstat -msmbclient -L //server -U user; Get-SmbConnectionCheck the negotiated protocol version on both.

← All comparisons

Confirmation

Confirm action

Continue?