安装samba网络共享

/opt/bin/opkg install samba36-server


编辑配置文件

vi /opt/etc/samba/smb.conf

按i进入编辑模式,填写内容如下

----------------------------分割线-------------------------------------

[global]

netbios name = XunLei 

display charset = UTF-8

interfaces = 127.0.0.1/8 lo 192.168.x.x/24 br-lan #修改为你的赚钱宝ip

server string = XunLei Share

unix charset = UTF-8

workgroup = MSHOME

browseable = yes

deadtime = 30

domain master = yes

encrypt passwords = true

enable core files = no

# guest account = nobody

guest account = root

guest ok = yes

# invalid users = root

local master = yes

load printers = no

map to guest = Bad User

max protocol = SMB2

min receivefile size = 16384

null passwords = yes

obey pam restrictions = yes

os level = 20

passdb backend = smbpasswd

preferred master = yes

printable = no

security = user

smb encrypt = disabled

smb passwd file = /opt/etc/samba/smbpasswd

socket options = TCP_NODELAY IPTOS_LOWDELAY

syslog = 2

use sendfile = yes

writeable = yes


[homes]

comment = Home Directories

browsable = no

read only = no

create mode = 0750

[nas]

path = /media/mmcblk0p1

read only = no

guest ok = yes

----------------------------分割线-------------------------------------

保存

:wq


添加samba密码


/opt/sbin/smbpasswd -a root

输入你想要的密码,可以和系统密码不同

重启samba

/opt/etc/init.d/S08samba restart

到你的网上邻居查看