Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Enable SMB Signing on Windows, macOS, and Linux

SMB signing adds a cryptographic signature to SMB network messages, helping devices detect tampering in transit and reducing the risk of certain relay and spoofing attacks. It does not encrypt file contents; use SMB encryption as well when confidentiality is required. The steps differ by operating system and SMB version, so first identify the devices that share files and check that their SMB clients and servers support signing.

What You’ll Need

  • Administrator access to each computer or server whose SMB settings you will change.
  • The names and operating systems of the SMB clients and servers involved, plus a way to test access to a shared folder.
  • A maintenance window or rollback plan for critical systems. Requiring signing can prevent older devices or software from connecting.
  • On Windows, use Group Policy or PowerShell. On macOS, use the built-in SMB client settings. On Linux, the procedure depends on whether the system uses Samba as a server, a client, or both.

Step-by-Step

  1. Map the connection. Record which computer hosts the share and which devices connect to it. Signing must be compatible at both ends. Enabling signing on a client does not configure the server, and vice versa. Check vendor documentation for NAS devices, printers, and appliances before changing their settings.
  2. Check existing support and policy. On Windows, open PowerShell as administrator and run Get-SmbClientConfiguration and Get-SmbServerConfiguration. Note the RequireSecuritySignature values. To inspect a connected SMB session, run Get-SmbConnection; the Signed column shows whether that connection is signed. On Linux, inspect the Samba configuration and version; on macOS, review the SMB client options supported by your macOS release.
  3. Choose whether to require signing. Requiring it is stronger than merely allowing or preferring it: a connection that cannot sign will fail instead of continuing unsigned. Start with a test client and server, especially in a mixed or older network. Avoid weakening an existing security policy just to accommodate an unsupported device; update, replace, or isolate that device if possible.
  4. Enable signing on Windows clients. In an elevated PowerShell window, run Set-SmbClientConfiguration -RequireSecuritySignature $true and confirm the prompt. This requires signing for outbound SMB client connections. For centrally managed PCs, use Group Policy instead: open the Group Policy Management Editor, go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options, and enable Microsoft network client: Digitally sign communications (always). A domain policy may override local settings.
  5. Enable signing on Windows servers. To require signing for inbound SMB connections, run Set-SmbServerConfiguration -RequireSecuritySignature $true in elevated PowerShell and confirm. In Group Policy, enable Microsoft network server: Digitally sign communications (always) under the same Security Options path. Configure client and server policies separately if the computer performs both roles. Windows versions and security baselines may already require signing; verify the effective setting rather than assuming it is off.
  6. Configure a Samba server on Linux, if applicable. Back up /etc/samba/smb.conf, then edit its [global] section. Set server signing = mandatory to require signing for clients connecting to the Samba server. Validate the file with testparm, then reload Samba using the service name for your distribution, commonly sudo systemctl reload smbd. If reload is unsupported, schedule a controlled service restart. Do not apply this server setting as a substitute for configuring a Linux SMB client.
  7. Configure a Linux Samba client, if applicable. For a mount using the kernel CIFS client, add sign to the mount options, for example -o username=NAME,sign, or add it to the appropriate entry in /etc/fstab. Protect credential files and do not put passwords directly into shell history or shared configuration. Confirm the option is supported by your kernel and client tools. Samba command-line clients have their own options; consult the installed smbclient manual rather than assuming server settings apply.
  8. Configure macOS client connections. macOS SMB clients can negotiate signing with compatible servers; behavior and available controls vary by macOS version. Check Apple’s current SMB documentation and your version’s nsmb.conf manual before setting a signing requirement. If your release supports the signing_required client option, configure it in the documented system or user configuration file, then disconnect and reconnect the share. Do not copy options from an unrelated macOS release or assume this configures a macOS-hosted server.
  9. Reconnect and verify. Disconnect existing mapped drives or mounted shares, then reconnect so a new SMB session negotiates the setting. On Windows, run Get-SmbConnection and confirm Signed is True. Test reading and writing files with an authorized account. Check server logs or platform-specific diagnostics if the session fails; a configured policy alone does not prove a particular connection is signed.

Common Mistakes

  • Confusing signing with encryption: Signing helps verify message integrity and authenticity, but does not conceal file data. Enable SMB encryption separately if data must be unreadable to network observers.
  • Changing only one side: Client and server settings govern different directions. Confirm the actual session negotiates signing after configuring the relevant endpoint.
  • Assuming “enabled” means “required”: Allowing signing does not necessarily stop unsigned connections. Use a require or mandatory setting when policy calls for enforcement, after compatibility testing.
  • Editing the wrong policy: Windows has separate client and server settings, and domain Group Policy can override local changes. Linux Samba server parameters do not automatically affect kernel CIFS mounts.
  • Forgetting to reconnect: Existing SMB sessions may keep their original negotiation. Close and reopen the connection before checking results.

Tips

  • Roll out the requirement in stages: test representative clients, servers, and business applications, then apply it through managed policy.
  • Keep a backup of configuration files and record the previous Windows policy values. For a temporary rollback, restore the documented prior setting rather than broadly disabling security controls.
  • Review current Microsoft, Apple, Samba, and NAS-vendor guidance. Defaults and supported options change between operating-system releases.
  • Signing can add processing overhead, though modern systems often handle it well. Measure performance on heavily used file servers instead of assuming a slowdown or no impact.

Troubleshooting

  • Connection fails after requiring signing: The peer may not support signing or may have a conflicting policy. Check its SMB version, firmware, security settings, and logs. Update it or replace it where possible; avoid restoring unsigned access on a sensitive network.
  • Windows still reports unsigned: Confirm you checked the correct client or server configuration, reconnect the share, and inspect Get-SmbConnection for the right server and share. Check effective Group Policy with Resultant Set of Policy or gpresult.
  • Samba refuses to reload: Run testparm and correct syntax or section placement errors. Check the service name and logs for your distribution. Keep the backup available before restarting a production service.
  • Linux mount says the option is invalid: Check the kernel CIFS and mount.cifs versions and their local manuals. Confirm you are using a client mount option, not a Samba server parameter; install supported updates if needed.
  • Settings appear correct but access is slow or unreliable: Test a fresh connection, check packet loss and server load, and compare results with a controlled test share. Do not disable signing until you have identified the cause and assessed the security impact.

Frequently Asked Questions

Does SMB signing encrypt files?
No. It helps detect tampering and verify SMB messages. Use SMB encryption or another suitable encrypted transport to protect confidentiality.

Do I need to enable signing on both the client and server?
Configure the policy appropriate to each role and verify the negotiated session. A client requirement affects outbound connections; a server requirement affects inbound connections.

Will enabling signing break older devices?
It can. A peer that cannot sign may be unable to connect when signing is required. Test older NAS units, printers, and applications before enforcing the setting broadly.

How can I tell whether a Windows SMB connection is signed?
Run Get-SmbConnection in PowerShell and check the Signed column for the specific connection.

Is SMB signing the same as SMB encryption?
No. Signing protects message integrity; encryption protects data confidentiality. They address different risks and may be used together.

Should I require signing everywhere?
Follow your organization’s security baseline and test compatibility. Requiring signing is appropriate where policy demands it, but plan for unsupported peers rather than silently weakening protections.

Enable SMB Signing on Windows, macOS, and Linux
Scroll to top