valid users
Windowsのファイル共有でのユーザー認証はローカルユーザーかドメインユーザーか択一。
両ユーザーを混合することはできない。
スタンドアロンモードかドメインモードかを選ばなくてはならない。
ドメインユーザーの場合はActiveDirectoryかLDAPか。
https://gyazo.com/e1494cce842788de701efdb69f1ba0de
ローカルユーザーの場合
ホームフォルダを有効にすると[home]セクションと[homes]セクションが作成される。
https://gyazo.com/3e8655e86cb682c2dbcd98d4cd93faae
LDAPユーザーの場合
https://gyazo.com/2380e1b4907c081af1e47ce4c3b25592 https://gyazo.com/aab54b753f8d0dcd36ec73863f66623c
Variable Substitutions
Many of the strings that are settable in the config file can take substitutions. For example the option “path = /tmp/%u” is interpreted as “path = /tmp/john” if the user connected with the username john.
%u
username of the current service, if any.
%U
session username (the username that the client wanted, not necessarily the same as the one they got).
%w
https://gyazo.com/d1860f7609ce62c8a0f6ef4fffa73c94
SMBアクセスは常にDomain \ USERNAMEを使用します
%D
name of the domain or workgroup of the current user.