我这边安装samba只用了两步
第一步
sudo apt-get install samba
第二步
sudo vi /etc/samba/smb.conf
主要修改点如下,去掉注释或者修改=右边的值
omment = Home Directories
browseable = no
read only = no
create mask = 0777
directory mask = 0777
valid users = %S
samba安装参考百度经验:https://jingyan.baidu.com/article/3a2f7c2ed314ef26afd611a1.html
;*****************************************************************************
;分割线
;*****************************************************************************
VBS映射代码:
Dim objNetworkSet objNetwork = CreateObject("Wscript.Network")if objNetwork.EnumNetworkDrives.count=0 then 'objNetwork.EnumNetworkDrives.count 判断网络驱动器是否存在objNetwork.MapNetworkDrive "z:","\\192.168.31.115\t",true,"t","tzg" '创建网络驱动器end ifset objNetwork=nothing
VBS映射参考资料:https://www.cnblogs.com/boltkiller/articles/4791775.html
;*****************************************************************************
;分割线
;*****************************************************************************