石油机械论坛

 找回密码
 注册会员
查看: 672|回复: 0

[转贴] Samba服务器搭建,win10/7拒绝访问解决方法

[复制链接]

签到天数: 338 天

[LV.8]以坛为家I

发表于 2019-12-21 04:49:55 | 显示全部楼层 |阅读模式 来自: 中国重庆
首先安装samba,  sudo apt-get install samba.

安装好Samba服务器之后,win10访问会拒绝访问。

解决办法:vi /etc/samba/smb.conf,按i进行输入。

将  ==========Share Definition=======下面的所有代码注释,并添加设置

[share]

comment = samba home directory
path = /home/share
public = yes
browseable = yes
public = yes
read only = no
writable = yes
#valid users = user
create mask = 0777
directory mask = 0777
#force user = nobody
#force group =nogroup
available = yes
security = share
然后esc,输入:wq 回车

重启samba服务器 /etc/init.d/sambd restart

即可无密码在win10下查看文件


您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

小黑屋|手机版|石油机械网 ( 渝ICP备19008190号-1 )

GMT+8, 2024-5-18 01:11 , Processed in 0.038956 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Discuz Team.

快速回复 返回顶部 返回列表