TrueNAS Nightly Development DocumentationThis content follows experimental nightly development software. Pre-release software is intended for testing purposes only.
Use the Product and Version selectors above to view content specific to a stable software release.
SMB Shares Screens
14 minute read.
If you have not added SMB shares to the system, the SMB widget shows No records have been added yet.
Add at the top right of the widget opens the Add SMB screen where you configure SMB shares. After adding an SMB share it displays on the widget.
Click on Windows (SMB) Shares Sharing > SMB screen.
to open theEach SMB share includes a toggle that provides quick access to enable or disable the share, and four icons for different individual share functions:
- Edit Share ACL screen. Edit Share ACL icon opens the
- Edit ACL screen. Edit Filesystem ACL icon opens the
- edit icon opens the Edit SMB screen.
- Delete dialog. opens the
The Windows (SMB) Shares
toolbar displays the status of the SMB service as either STOPPED (red) or RUNNING (blue). Before adding the first share, the STOPPED status displays in the default color.Click on the widget header to open the Sharing > SMB details screen.
Add opens the Add SMB share configuration screen.
The
icon displays four options available to SMB shares in general:- Turn Off Service what shows when the SMB service is enabled and that toggles to Turn On Service when the SMB service is disabled.
- Config Service that opens the SMB configuration screen.
- SMB Sessions that opens the SMB Status screen with four tabs: Sessions, Locks, Shares, and Notifications.
- Audit Logs that opens the Audit screen with a predefined filter for and showing the SMB share logs.
The
trash can icon displays the Delete dialog.Select Confirm to activate the Delete button.
The Sharing >SMB details screen, lists all SMB shares added to the system.
SMB Sessions opens the SMB Status screen.
Columns displays a set of options to customize the list view. Options include Unselect All, Path, Description, Enabled and Reset to Defaults.
Add opens the Add SMB configuration screen.
Enabled indicates whether the share is enabled or disabled. If selected, the share path is available when the SMB service is active. If cleared, the share is disabled but not deleted from the system.
Audit Logging indicates whether auditing for the share is enabled or disabled.
The
displays a dropdown list of options for each share:- Edit opens the Edit SMB screen.
- Edit Share ACL opens the Edit Share ACL screen.
- Edit Filesystem ACL opens the Edit ACL screen.
- Delete displays the Delete dialog.
To return to the Share screen, click Shares on the main navigation panel or Sharing on the breadcrumb at the top of the screen.
The two SMB share configuration screens, Add SMB and Edit SMB, display the same setting options. The Create Dataset option does not show on the Edit SMB screen, but you can change to another existing dataset on the system.
Click Save to create the share (or save an existing one) and add it to the Windows (SMB) Shares widget and Sharing SMB details screen.
The Basic Options settings in this section also display in the Advanced Options.
Setting | Description |
---|---|
Path | Enter the path or use the | icon to the left of
Click the | icon to expand the path at each dataset until you get to the SMB share dataset you want to use. This populates the Path.|
Create Dataset | Click to open the Create Dataset dialog. Enter a name to create a new dataset for the share. Click Create to add the dataset and populate the Name field on the Add SMB screen. |
Name | Enter a name for this share that is less than or equal to 80 characters. Because of how the SMB protocol uses the name, the name must not exceed 80 characters. The name cannot have invalid characters as specified in Microsoft documentation MS-FSCC section 2.1.6. If not supplied, the share name becomes the last component of the path. This forms part of the full share path name when SMB clients perform and SMB tree connect. If you change the name, follow the naming conventions for files and directories or share names. |
Purpose | Select a preset option from the dropdown list. The option applies predetermined settings (presets) and disables changing some share setting options. |
Description | Enter a brief description or notes on how you use this share. |
Enabled | Selected by default to enable sharing the path when the SMB service is activated. Clear to disable this SMB share without deleting it. |
This table details the options found on the Purpose dropdown list.
Setting | Description |
---|---|
No presets | Select to retain control over all Advanced Options settings. This option gives users the flexibility to manually configure SMB parameters. |
Default share parameters | The default option when you open the Add SMB screen and to use for any basic SMB share. These settings provide a baseline configuration that ensures compatibility and functionality, and allow users to set up shares with commonly implemented options and behaviors. |
Basic time machine share | Select to set up a basic time machine share. This provides a centralized location for users to store and manage system backups. |
Multi-User time machine | Select to set up a multi-user time machine share. This option allows multiple users to use TrueNAS as a centralized backup solution while simultaneously ensuring that each backup users make are kept separate and secure from one another. |
Multi-Protocol (NFSv3/SMB) shares | Select for multi-protocol (NFSv3/SMB) shares. Choosing this option allows NFS and SMB users to access TrueNAS at the same time. |
Private SMB Datasets and Shares | Select to create a share that maps to a path determined by the username of the authenticated user. TrueNAS creates a unique, private dataset matching the user name. |
SMB WORM. Files become read-only via SMB after 5 minutes | The SMB WORM preset only impacts writes over the SMB protocol. Before deploying this option in a production environment, determine whether the feature meets your requirements. Employing this option, ensures data written to the share cannot be modified or deleted, thus increasing overall data integrity and security. |
Click Advanced Options to display settings made available or locked based on the option selected in Purpose.
The Access settings customize access to the share and files, and also specifying allow or deny access for host names or IP addresses.
Setting | Description |
---|---|
Enable ACL | Select to enable ACL support for the SMB share. A warning displays if you clear this option and the SMB dataset has an ACL, and you are required to strip the ACL from the dataset prior to creating the SMB share. |
Export Read-Only | Select to prohibit writes to the share. |
Browsable to Network Clients | Select to determine whether this share name is included when browsing shares. Home shares are only visible to the owner regardless of this setting. Enabled by default. |
Allow Guest Access | Select to enable. Privileges are the same as the guest account. Guest access is disabled by default in Windows 10 version 1709 and Windows Server version 1903. Additional client-side configuration is required to provide guest access to these clients. MacOS clients: Attempting to connect as a user that does not exist in FreeNAS does not automatically connect as the guest account. You must specifically select the Connect As: Guest option in macOS to log in as the guest account. See the Apple documentation for more details. |
Access Based Share Enumeration | Select to restrict share visibility to users with read or write access to the share. Open is the default for this setting. See the smb.conf manual page. |
Hosts Allow | Enter a list of allowed host names or IP addresses. Separate entries by pressing Enter. You can find a more detailed description with examples here. |
Hosts Deny | Enter a list of denied host names or IP addresses. Separate entries by pressing Enter. |
The Audit Logging settings enable the auditing function for the SMB share, and allow configuring a watch and ignore list for groups administrators want to monitor.
Setting | Description |
---|---|
Enabled | Select to enable audit logging for the SMB share. |
Watch List | Select groups from the dropdown list that you want to generate audit logging message for. Leaving this blank includes all SMB users with access to the share. If also setting a limit list, when a conflict exists the watch list takes precedence. |
Limit List | Select groups from the dropdown list that you want to ignore or exclude from audit logging. If a group is a member of both the watch and limit lists, the watch list takes precedence and the group generates audit messages. |
The Other Options settings include improving Apple software compatibility, ZFS snapshot features, and other advanced features.
Setting | Description |
---|---|
Use as Home Share | Select to allow the share to host user home directories. Each user has a personal home directory they use when connecting to the share that is not accessible by other users. Home Shares allow for personal, dynamic shares. You can only use one share as the home share. See Adding an SMB Home Share for more information. |
Time Machine | Enables Apple Time Machine backups on this share. This option requires SMB2/3 protocol extension support. You can enable this in the general SMB server configuration. |
Legacy AFP Compatibility | Select to enable the share to behave like the deprecated Apple Filing Protocol (AFP). Leave cleared for the share to behave like a normal SMB share. This option controls how the SMB share reads and writes data. Only enable this when this share originated as an AFP sharing configuration. You do not need legacy compatibility for pure SMB shares or macOS SMB clients. This option requires SMB2/3 protocol extension support. You can enable this in the general SMB server configuration. |
Enable Shadow Copies | Select to export ZFS snapshots as Shadow Copies for Microsoft Volume Shadow Copy Service (VSS) clients. |
Export Recycle Bin | Select to enable. Deleted files are renamed to a per-user subdirectory within the .recycle directory at either the root of the SMB share if the path is the same dataset as the SMB share (default is share and dataset have the same name), or at the root of the current dataset if datasets are nested. Nested datasets do not have automatic deletion based on file size. Do not rely on this function for backups or replacements of ZFS snapshots. |
Use Apple-style Character Encoding | Select to convert NTFS illegal characters in the same manner as macOS SMB clients. By default, Samba uses a hashing algorithm for NTFS illegal characters. |
Enable Alternate Data Streams | Select to allow multiple NTFS data streams. Disabling this option causes macOS to write streams to files on the file system. |
Enable SMB2/3 Durable Handles | Select to allow using open file handles that can withstand short disconnections. Support for POSIX byte-range locks in Samba is also disabled. We do not recommend this option when configuring multi-protocol or local access to files. |
Enable FSRVP | Select to enable support for the File Server Remote VSS Protocol (FSVRP). This protocol allows remote procedure call (RPC) clients to manage snapshots for a specific SMB share. The share path must be a dataset mount point. Snapshots have the prefix fss- followed by a snapshot creation timestamp. A snapshot must have this prefix for an RPC user to delete it. |
Path Suffix | Appends a suffix to the share connection path. Use to provide individualized shares on a per-user, per-computer, or per-IP address basis. Suffixes can contain a macro. See the smb.conf manual page for a list of supported macros. The connect path must be preset before a client connects. |
Additional Parameters String | Shows a string of parameters associated with the share preset selected, or if no preset, enter additional smb4.conf parameters not covered by the TrueNAS API. |
The Purpose setting you select in the Basic Options affects which Advanced Options settings (presets) you can select. Some presets are available or locked based on your choice. The expandable below provides a comparison table listing these presets and shows whether the option is available or locked.
The Share ACL for sharename screen opens when you click the share Edit Share ACL icon on the Windows (SMB) Shares widget or the Sharing SMB details screen. These settings configure new ACL entries for the selected SMB share and apply them at the entire SMB share level. It is separate from file system permissions.
on theACL Entries are listed as a block of settings. Click Add to add a new entry.
Setting | Description |
---|---|
SID | Shows the SID trustee value (who) this ACL entry (ACE) applies to. SID is a unique value of variable length that identifies the trustee. Shown as a Windows Security Identifier. Click Save and re-open Edit Share ACL to update. |
Who | Select the domain for account (who) this ACL entry applies to. Options are: |
Permission | Select predefined permission combinations from the dropdown list. Options are: |
Type | Select the option from the dropdown list that specifies how TrueNAS applies permissions to the share. Options are: |
Save stores the share ACL and immediately applies it to the share.
The Edit Filesystem ACL option opens the Edit ACL screen for the dataset the share uses. See Edit ACL Screen more information on the settings found on this screen.
Use the ACL editor screen to set filesystem permissions for the shared dataset. See Permissions for more information on configuring permissions.
You can access the SMB Status screen from the SMB option on the System > Services screen with the list icon and from the
on the Shares > Windows (SMB) Shares widget.The SMB Status screen has four tabs with information related to SMB shares:
- Sessions shows current SMB sessions (default view).
- Locks shows locked files.
- Shares shows open files.
- Notifications shows file notification subscriptions.
Refresh updates the information displayed on the selected tab.
Column displays a dropdown list of options for the selected tab to customize the information included on the screen.
Click Sharing or SBM on the top breadcrumb to open the selected screen.
The breadcrumb displays when you access the SMB Status screen from the System > Services SMB row.