|
第一次搞openwrt,折腾了很久了,搞不定啊smb.conf.template 的配置
=================================================================
[global]
netbios name = |NAME|
workgroup = |WORKGROUP|
server string = |DESCRIPTION|
syslog = 10
encrypt passwords = true
passdb backend = smbpasswd
obey pam restrictions = yes
socket options = TCP_NODELAY
unix charset = |CHARSET|
preferred master = yes
os level = 20
security = share
null passwords = yes
guest account = nobody
invalid users = root
smb passwd file = /etc/samba/smbpasswd
interfaces = |INTERFACES|
/etc/config/samba 的配置
=======================================================
config 'samba'
option 'name' 'openwrt'
option 'description' 'openwrt'
option 'workgroup' 'openwrt'
option 'homes' '0'
config 'sambashare'
option 'name' 'home'
option 'read_only' 'no'
option 'path' '/mnt'
option 'create_mask' '0666'
option 'dir_mask' '0555'
option 'guest_ok' 'yes'
/var/etc/smb.conf最终生成的配置
=========================================================
[global]
netbios name = openwrt
workgroup = openwrt
server string = openwrt
syslog = 10
encrypt passwords = true
passdb backend = smbpasswd
obey pam restrictions = yes
socket options = TCP_NODELAY
unix charset = UTF-8
preferred master = yes
os level = 20
security = share
null passwords = yes
guest account = nobody
invalid users = root
smb passwd file = /etc/samba/smbpasswd
interfaces = 127.0.0.1/255.0.0.0 lo 192.168.9.1/255.255.255.0 br-lan
[home]
path = /mnt
read only = no
guest ok = yes
create mask = 0666
directory mask = 0555
还有为什么不能用root去登入, 已经smbpasswd添加了。
|
|