linux 安装 samba 来共享目录
修改配置
cd /etc/samba
例如共享3个目录
vim smb.conf
[global]
workgroup = WORKGROUP
netbios name = 197-picture
server string = Linux Samba 197
security = share
lanman auth = Yes
client lanman auth = yes
client ntlmv2 auth = no
# setsebool -P samba_domain_controller on
# setsebool -P samba_enable_home_dirson
[197-data2]
path = /data2/picture
writeable = yes
browseable = yes
guest ok = yes
[197-data3]
path = /data3/picture
writeable = yes
browseable = yes
guest ok = yes
[197-data4]
path = /data4/picture
writeable = yes
browseable = yes
guest ok = yes
vim smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
启动服务
service smb start
阅读(1347) | 评论(0) | 转发(0) |