{"id":3507,"date":"2023-12-16T16:28:49","date_gmt":"2023-12-16T07:28:49","guid":{"rendered":"http:\/\/192.168.20.1\/?p=3507"},"modified":"2023-12-16T18:47:05","modified_gmt":"2023-12-16T09:47:05","slug":"truenas-scale-smb-share","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=3507","title":{"rendered":"[TrueNAS Scale] Create SMB Share"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>TrueNAS Scale \u306e Sharing SMB \u306e\u8a2d\u5b9a\u9805\u76ee\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/rlab.cavtime.net\/?p=3515\" target=\"_blank\" rel=\"noopener\">[TrueNAS Scale] SMB Share Purpose Detail<\/a><\/li>\n<\/ul>\n<h2>Environment<\/h2>\n<p>TrueNAS Scale 23.10.0.1<\/p>\n<h2>Add SMB<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2023\/12\/Share_SMB_01s.png\" alt=\"\" width=\"900\" height=\"707\" class=\"img-responsive right-block\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2023\/12\/Share_SMB_02s.png\" alt=\"\" width=\"900\" height=\"1510\" class=\"img-responsive right-block\" \/><\/p>\n<h3>Basic<\/h3>\n<p><strong>Path<\/strong><\/p>\n<blockquote><p><span>Select pool, dataset, or directory to share.<\/span><\/p><\/blockquote>\n<p><strong>Name<\/strong><\/p>\n<blockquote><p>Enter a name for the share.<\/p><\/blockquote>\n<p><strong>Purpose<\/strong> : Share \u306e\u9078\u629e\u80a2\u306b\u3088\u308a\u4e0b\u8a18\u306b Access \/ Other Options \u306e\u8a2d\u5b9a\u9805\u76ee\u304c\u9078\u5b9a\u3055\u308c\u308b\u3002<\/p>\n<blockquote><p>Select a preset configuration for the share. This applies predetermined values and disables changing some share options.<\/p><\/blockquote>\n<ul>\n<li>No presents<\/li>\n<li>Default share parameters \/ default<\/li>\n<li>Basic time machine share<\/li>\n<li>Multi-user time machine<\/li>\n<li>Multi-protocol (NFSv4\/SMB) shares<\/li>\n<li>Private SMB Datasets and shares<\/li>\n<li>SMB WORM. Files become readonly via SMB after 5 minutes<\/li>\n<\/ul>\n<p>\u203b\u7279\u306b\u8981\u4ef6\u304c\u306a\u3051\u308c\u3070\u300cDefault share parameters\u300d\u3092\u9078\u629e\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<p><strong>Description<\/strong><\/p>\n<blockquote><p>Description of the share or notes on how it is used.<\/p><\/blockquote>\n<p><strong>Enabled<\/strong><\/p>\n<blockquote><p><span>Enable this SMB share. Unset to disable this SMB share without deleting it.<\/span><\/p><\/blockquote>\n<ul>\n<li>Checked<\/li>\n<\/ul>\n<h3>Access<\/h3>\n<p><strong>Enable ACL<\/strong><\/p>\n<blockquote><p><span>Enable ACL support for the SMB share.<\/span><\/p><\/blockquote>\n<ul>\n<li>Checked \/ default<\/li>\n<\/ul>\n<p><strong>Export Read Only<\/strong><\/p>\n<blockquote><p><span>Prohibits writes to this share.<\/span><\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Browsable to Network Clients<\/strong><\/p>\n<blockquote><p><span>Determine whether this share name is included when browsing shares. Home shares are only visible to the owner regardless of this setting.<\/span><\/p><\/blockquote>\n<ul>\n<li>Checked \/ default<\/li>\n<\/ul>\n<p><strong>Allow Guest Access<\/strong><\/p>\n<blockquote><p><span>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.<\/span><\/p>\n<p><i>MacOS clients:<\/i><span>\u00a0Attempting to connect as a user that does not exist in TrueNAS\u00a0<\/span><i>does not<\/i><span>\u00a0automatically connect as the guest account. The\u00a0<\/span><b>Connect As:<\/b><span>\u00a0<\/span><i>Guest<\/i><span>\u00a0option must be specifically chosen in MacOS to log in as the guest account. See the\u00a0<\/span><a href=\"https:\/\/support.apple.com\/guide\/mac-help\/connect-mac-shared-computers-servers-mchlp1140\/\" target=\"_blank\" rel=\"noopener\">Apple documentation<\/a><span>\u00a0for more details.<\/span><\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Access Based Share Enumeration<\/strong><\/p>\n<blockquote><p><span>Restrict share visibility to users with read or write access to the share. See the\u00a0<\/span><a href=\"https:\/\/www.samba.org\/samba\/docs\/current\/man-html\/smb.conf.5.html\" target=\"_blank\" rel=\"noopener\">smb.conf<\/a><span>\u00a0manual page.<\/span><\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Hosts Allow<\/strong> : \u8a31\u53ef\u3059\u308b<\/p>\n<blockquote><p>Enter a list of allowed hostnames or IP addresses. Separate entries by pressing Enter. A more detailed description with examples can be found here.<\/p>\n<p>If neither *Hosts Allow* or *Hosts Deny* contains an entry, then SMB share access is allowed for any host.<\/p>\n<p>If there is a *Hosts Allow* list but no *Hosts Deny* list, then only allow hosts on the *Hosts Allow* list.<\/p>\n<p>If there is a *Hosts Deny* list but no *Hosts Allow* list, then allow all hosts that are not on the *Hosts Deny* list.<\/p>\n<p>If there is both a *Hosts Allow* and *Hosts Deny* list, then allow all hosts that are on the *Hosts Allow* list.<\/p>\n<p>If there is a host not on the *Hosts Allow* and not on the *Hosts Deny* list, then allow it.<\/p><\/blockquote>\n<p><strong>Hosts Deny<\/strong> :<\/p>\n<p>Allow and Deny Example<\/p>\n<ul>\n<li>Allow : no host \/ Deny : no host &gt;&gt; All Host Allow<\/li>\n<li>Allow : 192.168.1.1 \/ Deny : no list &gt;&gt; Allow only 192.168.1.1<\/li>\n<li>Allow : no list \/ Deny : 192.168.1.1 &gt;&gt; Deny 192.168.1.1 Allow except 192.168.1.1<\/li>\n<li>Allow : 192.168.1.1 \/ Deny : 192.168.1.1 &gt;&gt; Allow only 192.168.1.1<\/li>\n<\/ul>\n<h3>Other Options<\/h3>\n<p><strong>Use as Home Share<\/strong> : \u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5229\u7528\u53ef\u5426<\/p>\n<blockquote><p><span>Allows the share to host user home directories. Each user is given a personal home directory when connecting to the share which is not accessible by other users. This allows for a personal, dynamic share. Only one share can be used as the home share.<\/span><\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Time Machine<\/strong> :<\/p>\n<blockquote><p>Enable Time Machine backups on this share.<\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Legacy AFP Compatibility<\/strong> :<\/p>\n<blockquote><p><span>This controls how the SMB share reads and writes data. Leave unset for the share to behave like a normal SMB share and set for the share to behave like the deprecated Apple Filing Protocol (AFP). This should only be set when this share originated as an AFP sharing configuration. This is not required for pure SMB shares or MacOS SMB clients.<\/span><\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Enable Shadow Copies<\/strong> :<\/p>\n<blockquote><p><span>Export ZFS snapshots as\u00a0<\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/vss\/shadow-copies-and-shadow-copy-sets\" target=\"_blank\" rel=\"noopener\">Shadow Copies<\/a><span>\u00a0for VSS clients.<\/span><\/p><\/blockquote>\n<ul>\n<li>Checked \/ default<\/li>\n<\/ul>\n<p><strong>Export Recycle Bin<\/strong> :<\/p>\n<blockquote><p>Files that are deleted from the same dataset are moved to the Recycle Bin and do not take any additional space. Deleting files over NFS will remove the files permanently . When the files are in a different dataset or a child dataset, they are copied to the dataset where the Recycle Bin is located. To prevent excessive space usage, files larger than 20 MiB are deleted rather than moved. This is not a replacement for ZFS snapshots.<\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Use Apple-style Character Encoding<\/strong> :<\/p>\n<blockquote><p>By default, Samba uses a hashing algorithm for NTFS illegal characters. Enabling this option translates NTFS illegal characters to the Unicode private range.<\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p><strong>Enable Alternate Data Streams<\/strong> :<\/p>\n<blockquote><p>Allows multiple NTFS data streams. Disabling this option causes MacOS to write streams to files on the filesystem.<\/p><\/blockquote>\n<ul>\n<li>Checked \/ default<\/li>\n<\/ul>\n<p><strong>Enable SMB2\/3 Durable Handles<\/strong> :<\/p>\n<blockquote><p>Allow using open file handles that can withstand short disconnections. Support for POSIX byte-range locks in Samba is also disabled. This option is not recommended when configuring multi-protocol or local access to files.<\/p><\/blockquote>\n<ul>\n<li>Checked \/ default<\/li>\n<\/ul>\n<p><strong>Enable FSRVP<\/strong> :<\/p>\n<blockquote><p>Enable support for the File Server Remote VSS Protocol (FSVRP). This protocol allows RPC clients to manage snapshots for a specific SMB share. The share path must be a dataset mountpoint. Snapshots have the prefix fss- followed by a snapshot creation timestamp. A snapshot must have this prefix for an RPC user to delete it.<\/p><\/blockquote>\n<ul>\n<li>Unchecked \/ default<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview TrueNAS Scale \u306e Sharing SMB \u306e\u8a2d\u5b9a\u9805\u76ee\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3002 Reference [TrueNAS Scale] SMB Share Purpose Detail Environ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-3507","post","type-post","status-publish","format-standard","hentry","category-nas"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3507"}],"version-history":[{"count":8,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3507\/revisions"}],"predecessor-version":[{"id":3533,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3507\/revisions\/3533"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}