Samba 4.17.5のsmb.conf(仕事場:Rocky Linux 8.8)

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run ‘testparm’ to verify the config is correct after
# you modified it.

[global]
dos charset = CP932
unix charset = UTF8
security = user
wide links = yes
unix extensions = no
guest account = nobody
ntlm auth = yes
hide files = /.AppleDB/.AppleDouble/.AppleDesktop/Network Trash Folder/TheFindByContentFolder/TheVolumeSettingsFolder/Temporary Items/.TemporaryItems/.VolumeIcon.icns/Icon?/.FBCIndex/.FBCLockFolder/:2eES_Store/.DS_Store/.Trashes/..Trashes
veto files = /lost+found/
delete veto files = yes

oplocks = no
kernel oplocks = no
level2 oplocks = no

ea support = Yes
store dos attributes = Yes
map archive = No
map read only = No
map acl inherit = Yes

workgroup = WINWORKGROUP

server string = A3 SMB Server

netbios name = AMULET3

bind interfaces only = yes
interfaces = enp0s31f6 127.0.0.1/8 192.168.24.0/24

os level = 0
local master = no
preferred master = no

log level = 2
log file = /var/log/samba/log.%m
max log size = 1000
logging = file

panic action = /usr/share/samba/panic-action %d

server role = standalone server

obey pam restrictions = no

pam password change = no

map to guest = Bad User

logon path = \%N\%U\profile

logon home = \%N\%U

usershare max shares = 100

usershare allow guests = yes

printcap cache time = 0
load printers = no
disable spoolss = yes

elasticsearch:index = files
elasticsearch:address = 192.168.24.203
elasticsearch:port = 9200

[A3-Linux-SMB]
path = /home2/A3-linux-doc/A3-Linux
read only = no
guest ok = yes
guest only = yes
browseable = yes
writable = yes
wide links = yes
follow symlinks = yes
spotlight = yes
printable = no
force create mode = 0777
force directory mode = 0777
ea support = yes
vfs objects = acl_xattr catia fruit streams_xattr recycle
fruit:resource = file
fruit:metadata = netatalk
fruit:locking = netatalk
fruit:encoding = native
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no

[A3-MacWin-SMB]
path = /home2/A3-linux-doc/A3-MacWin
read only = no
guest ok = yes
guest only = yes
browseable = yes
writable = yes
wide links = yes
follow symlinks = yes
spotlight = yes
printable = no
force create mode = 0777
force directory mode = 0777
ea support = yes
vfs objects = acl_xattr catia fruit streams_xattr recycle
fruit:resource = file
fruit:metadata = netatalk
fruit:locking = netatalk
fruit:encoding = native
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no

=================================

バックアップ用は、

[A3-Linux-SMB] → [A4-Linux-SMB]
[A3-MacWin-SMB] → [A4-MacWin-SMB]

に変更。

Linux、Netatalk、Samba、NFSを使用したファイルサーバーについて研究・運用しています。

fsをフォローする
私の設定

コメント