找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4390|回复: 13

lean大雕源码编译的固件,开启smb共享后在win“网络”界面搜索不到问题的解决方法

[复制链接]
发表于 2020-2-19 21:50 | 显示全部楼层 |阅读模式
本帖最后由 huah0235 于 2020-2-19 21:51 编辑

本人放假期间有空折腾编译openwrt玩,利用lean大雕提供的优秀源码做出来几个固件。体验很好但是在使用过程中,发现Windows的“网络”界面搜索不到openwrt中Samba发出的共享(Samba在编译中直接选中,未作修改)。如图



经过我的研究,发现修改配置文件即可解决该问题。
解决方法:
将如下内容覆盖“网络存储”--“网络共享”--“编辑模板”中的原本内容,保存应用就能显示了
[global]
        netbios name = |NAME|
        display charset = |CHARSET|
        interfaces = |INTERFACES|
        server string = |DESCRIPTION|
        unix charset = |CHARSET|
        workgroup = |WORKGROUP|
        browseable = yes
        deadtime = 30
        domain master = yes
        encrypt passwords = true
        enable core files = no
        guest account = nobody
        guest ok = yes
#       invalid users = root
        local master = yes
        load printers = no
        map to guest = Bad User
        max protocol = SMB2
        min receivefile size = 16384
        null passwords = yes
        obey pam restrictions = yes
        os level = 20
        passdb backend = smbpasswd
        preferred master = yes
        printable = no
        security = user
        smb encrypt = disabled
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        syslog = 2
        use sendfile = yes
        writeable = yes








抛砖引玉,理论上该配置文件对其他Samba的通用。成功的请留个言


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-2-19 22:10 | 显示全部楼层
需要Samba4 才能兼容win10
或者win10安装SMB1.1协议
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-20 10:02 | 显示全部楼层
fclql 发表于 2020-2-19 22:10
需要Samba4 才能兼容win10
或者win10安装SMB1.1协议

win7也不行
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-20 20:03 | 显示全部楼层
win10完美解决
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-22 11:09 | 显示全部楼层
替换后 可以看到openwrt的设备了,但还是无法访问。win10 已经安装 SMB1.1了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-26 15:31 | 显示全部楼层
刚入手k3,抽空刷来看看,谢谢楼主
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-28 01:08 | 显示全部楼层
收藏学习呀
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-28 10:21 | 显示全部楼层
刷了LZ的1.4 openwrt电脑上无法显示openwrt的设备,按照LZ的教程,覆盖数据后,开启了SMB1.0,还是不显示。请教怎能处理呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-11 21:31 | 显示全部楼层
复制了,还是刷不出来。我也是用的1.4.
还有个问题,接了USB硬盘后2.4G就连不上了,提示密码错误,拔掉硬盘就好了,望大神指导
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-17 15:17 | 显示全部楼层
win10安装 SMB1.1
然后把模板里的
  1. max protocol = SMB2
复制代码

改成
  1. max protocol = SMB
复制代码


即可解决。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-12 21:19 | 显示全部楼层
谢谢楼主分享,win10完美解决C:\Users\shu08\Desktop

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-4 20:28 | 显示全部楼层
感谢楼主分享  节约我走弯路的时间!

点评

这位大佬也在呀  详情 回复 发表于 2021-7-25 16:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-7-25 16:05 | 显示全部楼层
╩华夏の鹰╩ 发表于 2020-8-4 20:28
感谢楼主分享  节约我走弯路的时间!

这位大佬也在呀
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-21 22:04 | 显示全部楼层
browseable = yes

加这句就可以了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 21:57

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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