例。
#======================= Global Settings ===================================== [global] workgroup = HOGE dos charset = CP932 unix charset = UTF-8 display charset = UTF-8 max protocol = SMB2 server string = Samba Server security = user hosts allow = 192.168.xxx. 127. log file = /usr/local/samba/var/log.%m max log size = 50 bind interfaces only = yes interfaces = eth0 127. client ntlmv2 auth = yes #============================ Share Definitions ============================== [homes] comment = Home Directories valid users = %S browseable = no writable = yes vfs objects = recycle full_audit recycle:keeptree = yes recycle:versions = yes full_audit:failure = connect disconnect mkdir rmdir open rename unlink full_audit:success = connect disconnect mkdir rmdir open rename unlink [share] comment = share containts path = /usr/local/hoge browseable = no writable = yes valid users = hoge force user = hoge vfs objects = recycle full_audit recycle:keeptree = yes recycle:versions = yes full_audit:failure = connect disconnect mkdir rmdir open rename unlink full_audit:success = connect disconnect mkdir rmdir open rename unlink