- 追加された行はこの色です。
- 削除された行はこの色です。
[[FreeBSD/Samba41]]
アカウント追加
pdbedit -a "USER"
pdbedit -a "USER" # 実在アカウント"USER"がある事
/etc/inetd.conf
swat stream tcp nowait/400 root /usr/local/sbin/swat swat
/etc/rc.conf
service inetd restart
service samba start
samba_enable="YES"
samba_server_enable="YES" # 3.x とは変わっている
#winbindd_enable="YES" # うちでは使わん
# cat /usr/local/etc/smb.conf
[global]
unix charset = CP932
workgroup = ZENNO
server string =
guest account = admin
log file = /var/log/samba/log.%m
max log size = 50
recycle:maxsize = 0
recycle:versions = yes
recycle:touch = yes
recycle:keeptree = yes
recycle:repository = .recycle
idmap config * : backend = tdb
hosts allow = 192.168., 127., 10.
vfs objects = recycle
[test]
path = /pub1/test/
read only = No
guest ok = Yes
[test2]
path = /pub2/test2/
read only = No
guest ok = Yes
chown "USER" /data/pub
testparm # 設定確認
testparm -v # デフォルトも確認できる
[http://www.samba.gr.jp/project/translation/Samba3-HOWTO/index.html]
chown admin /data/pub
/usr/local/etc/smb4.conf
[global]
dos charset = CP932
display charset = UTF-8
workgroup = ZENNO
netbios name = AYAME
server string =
guest account = admin
log file = /var/log/samba/log.%m
max log size = 50
idmap config * : range =
recycle:maxsize = 0
recycle:versions = yes
recycle:touch = yes
recycle:keeptree = yes
recycle:repository = .recycle
idmap config * : backend = tdb
hosts allow = 192.168., 127., 10.
vfs objects = recycle
# admin users = admin
# create mask = 0775
workgroup = kenji #
hosts allow = 192.168., 127., 10. #
netbios name = kenji-samba
# create mask = 0644 # デフォルト0744で良い気がする
[pub]
path = /data/pub
read only = No
guest ok = Yes
path = /data/pub #
writable = yes #
vfs objects = recycle # ゴミ箱
recycle:versions = yes # 同じファイル名が何度も
recycle:keeptree = yes #
recycle:repository = .recycle #
#unix charset = CP932 # NT系の新しいWindowsばかりなので不要
ネットの設定例は余分なものがいっぱい マニュアル読んでシンプルに
[[FreeBSD]]