Samba 4.15.13-Ubuntuのsmb.conf(自宅:Ubuntu 22.04.1 )_Sambaのみ(Netatalk不使用)_by Gemini_260108PM時点

[global]
# 1. 文字コード設定
dos charset = CP932
unix charset = UTF-8

# 2. サーバー識別・ネットワーク設定
workgroup = WINWORKGROUP
server string = ProBook SMB Server
netbios name = ProBook
bind interfaces only = yes
interfaces = enp0s31f6 127.0.0.0/8 192.168.24.0/24

# 3. 認証・ゲストアクセス設定
server role = standalone server
map to guest = Bad User
guest account = nobody
usershare allow guests = yes

# 4. macOS 最適化設定(全台共通)
# vfs_fruit: macOS 固有のメタデータ処理と高速化を実現
vfs objects = catia fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_metadata = yes
fruit:veto_appledouble = no
fruit:wipe_abe = yes
fruit:nfs_aces = no

# AAPLプロトコルによる Finder 表示の高速化
readdir_attr:aapl_rfind = yes
readdir_attr:aapl_finder_info = yes
readdir_attr:aapl_max_access_allowed = yes

# 5. ファイルシステム基本動作
ea support = yes
store dos attributes = yes
map archive = no
map read only = no

# シンボリックリンクの許可(unix extensions=no が必須)
unix extensions = no
follow symlinks = yes
wide links = yes

# 6. エラー回避設定
# .DS_Store 等の拒否設定(veto files)はコピーエラーの原因となるため記述しない

# 7. ログ設定
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d

# 8. 不要なサービス(プリンタ等)の無効化
printcap cache time = 0
load printers = no
disable spoolss = yes

# ======================= Share Definitions =======================

[ProBook-smb]
path = /home-share
comment = Mac-Ubuntu Shared Storage
read only = no
guest ok = yes
browseable = no
writable = yes
printable = no

# 権限設定:すべてのユーザーが読み書き可能に固定
force create mode = 0777
force directory mode = 0777
create mask = 0777
directory mask = 0777

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

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

コメント