centos7搭建samb

1,smb配置文件

[global]
workgroup = WORKGROUP
netbios name = LinuxSir05
server string = Linux Samba Server TestServer
security = user
dns proxy = no

[pub]
path = /data/pub
available = yes
browseable = yes
public = yes
writable = yes
create mask = 0644 
directory mask = 0777
force user = pub
force group = pub

2,添加用户


smbpasswd -a pub

3,启动

service samb restart

 

posted @ 2016-12-06 16:48  知_行  阅读(266)  评论(0编辑  收藏  举报