samba的smb.conf参考配置和设置密码方法

[global]

bind interfaces only = yes

interfaces = 192.168.1.200/24

workgroup = Workgroup

server string = hp 5710

#guest account = ty

security = user

load printers = no

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

netbios name = Linksys WRT600N

browseable = yes

dns proxy = no

guest ok = yes

guest only = no

log level = 1

max log size = 100

encrypt passwords = yes

preserve case = yes

short preserve case = yes

dos charset = UTF-8

unix charset = UTF-8

display charset = UTF-8

wins support = yes

time server = yes

os level = 255

local master = yes

domain master = yes

preferred master = yes

hosts allow = 192.168.1.200/24

 

 

[Share]

path = /mnt/down

valid user = ty

browseable = yes

writable = yes

 

为了安全,还需要设置访问密码,用户名必须是系统已有用户名,这里的密码可与登陆debian的密码不一致

smbpasswd 用户名

你可能感兴趣的:(Debian,socket,dos,OS,HP)