找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3640|回复: 11

ACRH17刷了openwrt,硬盘已挂载,win10以及手机无法访问。

[复制链接]
发表于 2020-2-4 10:33 | 显示全部楼层 |阅读模式
RT:ACRH17刷了openwrt,硬盘已挂载,win10以及手机无法访问。谁有教程啊。百度了一大堆。还是不行哎。下面是网络共享的模板

[global]
        netbios name = |NAME|
        interfaces = |INTERFACES|
        server string = |DESCRIPTION|
        unix charset = |CHARSET|
        workgroup = |WORKGROUP|

        ## This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests.
        bind interfaces only = yes

        ## time for inactive connections to-be closed in minutes
        deadtime = 15

        ## disable core dumps
        enable core files = no

        ## set security (auto, user, domain, ads)
        security = user

        ## This parameter controls whether a remote client is allowed or required to use SMB encryption.
        ## It has different effects depending on whether the connection uses SMB1 or SMB2 and newer:
    ## If the connection uses SMB1, then this option controls the use of a Samba-specific extension to the SMB protocol introduced in Samba 3.2 that makes use of the Unix extensions.
        ## If the connection uses SMB2 or newer, then this option controls the use of the SMB-level encryption that is supported in SMB version 3.0 and above and available in Windows 8 and newer.
        ## (default/auto,desired,required,off)
        #smb encrypt = default

        ## set invalid users
        invalid users = root

        ## map unknow users to guest
        map to guest = Bad User

        ## allow client access to accounts that have null passwords.
        null passwords = yes

        ## The old plaintext passdb backend. Some Samba features will not work if this passdb backend is used. (NOTE: enabled for size reasons)
        ## (tdbsam,smbpasswd,ldapsam)
        passdb backend = smbpasswd

        ## Set location of smbpasswd ('smbd -b' will show default compiled location)
        #smb passwd file = /etc/samba/smbpasswd

        ## LAN/WAN options (IPTOS_LOWDELAY TCP_NODELAY) WAN (IPTOS_THROUGHPUT)
        socket options = IPTOS_LOWDELAY TCP_NODELAY

        ## If this integer parameter is set to a non-zero value, Samba will read from files asynchronously when the request size is bigger than this value.
        ## Note that it happens only for non-chained and non-chaining reads and when not using write cache.
        ## The only reasonable values for this parameter are 0 (no async I/O) and 1 (always do async I/O).
        ## (1/0)
        #aio read size = 0
        #aio write size = 0

        ## If Samba has been built with asynchronous I/O support, Samba will not wait until write requests are finished before returning the result to the client for files listed in this parameter.
        ## Instead, Samba will immediately return that the write request has been finished successfully, no matter if the operation will succeed or not.
        ## This might speed up clients without aio support, but is really dangerous, because data could be lost and files could be damaged.
        #aio write behind = /*.tmp/

        ## lower CPU useage if supported and aio is disabled (aio read size = 0 ; aio write size = 0)
        ## currently broken (NOTE: see https://bugzilla.samba.org/show_bug.cgi?id=14095 )
        ## (no, yes)
        #use sendfile = yes

        ## samba will behave as previous versions of Samba would and will fail the lock request immediately if the lock range cannot be obtained.
        #blocking locks = No

        ## disable loading of all printcap printers by default (iprint, cups, lpstat)
        load printers = No
        printcap name = /dev/null

        ## Enabling this parameter will disable Samba's support for the SPOOLSS set of MS-RPC's.
        disable spoolss = yes

        ## This parameters controls how printer status information is interpreted on your system.
        ## (BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, SOFTQ)
        printing = bsd

        ## Disable that nmbd is acting as a WINS server for unknow netbios names
        #dns proxy = No

        ## win/unix user mapping backend
        #idmap config * : backend = tdb

        ## Allows the server name that is advertised through MDNS to be set to the hostname rather than the Samba NETBIOS name.
        ## This allows an administrator to make Samba registered MDNS records match the case of the hostname rather than being in all capitals.
        ## (netbios, mdns)
        mdns name = mdns

        ## Clients that only support netbios won't be able to see your samba server when netbios support is disabled.
        #disable netbios = Yes

        ## Setting this value to no will cause nmbd never to become a local master browser.
        #local master = no

        ## (auto, yes) If this is set to yes, on startup, nmbd will force an election, and it will have a slight advantage in winning the election. It is recommended that this parameter is used in conjunction with domain master = yes, so that nmbd can guarantee becoming a domain master.
        #preferred master = yes

        ## (445 139) Specifies which ports the server should listen on for SMB traffic.
        ## 139 is netbios/nmbd
        #smb ports = 445 139

        ## This is a list of files and directories that are neither visible nor accessible.
        ## Each entry in the list must be separated by a '/', which allows spaces to be included in the entry. '*' and '?' can be used to specify multiple files or directories as in DOS wildcards.
        veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/

        ## If a directory that is to be deleted contains nothing but veto files this deletion will fail unless you also set the delete veto files parameter to yes.
        delete veto files = yes

################ Filesystem and creation rules ################
        ## reported filesystem type (NTFS,Samba,FAT)
        #fstype = FAT

        ## Allows a user who has write access to the file (by whatever means, including an ACL permission) to modify the permissions (including ACL) on it.
        #dos filemode = Yes

        ## file/dir creating rules
        #create mask = 0666
        #directory mask = 0777
        #force group = root
        #force user = root
        #inherit owner = windows and unix
################################################################


我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-2-4 22:31 来自手机 | 显示全部楼层
我也一样搞的头都大了

点评

有一个办法能简单访问硬盘,就是上传速度慢。烦人。可以直接播放浏览硬盘文件。  详情 回复 发表于 2020-2-8 15:10
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-8 15:09 来自手机 | 显示全部楼层
没人帮一下啊,哎。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-8 15:10 来自手机 | 显示全部楼层
盖世熊 发表于 2020-2-4 22:31
我也一样搞的头都大了

有一个办法能简单访问硬盘,就是上传速度慢。烦人。可以直接播放浏览硬盘文件。

点评

怎么设置的。。。。  详情 回复 发表于 2020-2-9 09:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-9 09:30 | 显示全部楼层
aa568566011 发表于 2020-2-8 15:10
有一个办法能简单访问硬盘,就是上传速度慢。烦人。可以直接播放浏览硬盘文件。

怎么设置的。。。。

点评

方法更新了。看一下吧。7楼  详情 回复 发表于 2020-2-10 19:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-10 19:02 | 显示全部楼层
win10开启samba服务,步骤如下见图片,打开网络邻居应该就可以看到了,第一次需要登录,可以选客人,看你的权限设置。

本帖子中包含更多资源

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

×

点评

没用。我都开了。用原版固件没问题,现在是是电脑手机都没办法用smb访问。  详情 回复 发表于 2020-2-10 19:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-10 19:05 | 显示全部楼层
第一种方法:利用可道云KodExplorer
WinSCP登陆路由器。找到挂载的磁盘。mmt/sda1目录。在此目录下新建文件夹kodexplorer
下载可道云(地址http://static.kodcloud.com/update/download/kodexplorer4.40.zip或者百度搜索可道云)。
将下载的文件解压全部上传到刚才建立的kodexplorer文件夹下。
网络存储-可道云。将启用点上,别的设置看我设置的。

保存并应用后。访问地址IP:8081
比如我的路由器网关是192.168.1.1,所以访问地址是192.168.1.1:8081
帐号密码是可道云默认,可以自己修改。坏处就是上传好慢。
方法二。利用ftp服务器
网络存储-FTP服务器。别的看下图。

现在有个问题就是,手机用es文件管理器可以用ftp服务器访问磁盘并且正常读写。但是电脑访问不能上传只能下载。

本帖子中包含更多资源

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

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

使用道具 举报

 楼主| 发表于 2020-2-10 19:06 | 显示全部楼层
盖世熊 发表于 2020-2-9 09:30
怎么设置的。。。。

方法更新了。看一下吧。7楼
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-10 19:09 | 显示全部楼层
jzhang33 发表于 2020-2-10 19:02
win10开启samba服务,步骤如下见图片,打开网络邻居应该就可以看到了,第一次需要登录,可以选客人,看你的 ...

没用。我都开了。用原版固件没问题,现在是是电脑手机都没办法用smb访问。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-10 20:54 | 显示全部楼层
不知道你是刷的什么版本的固件,我怀疑是不是组件不全导致的,这个基本上不用设置就可以使用的。

点评

我是从下面这下载的。也是恩山找的。 https://www.right.com.cn/forum/thread-1411761-1-1.html  详情 回复 发表于 2020-2-12 17:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-10 20:56 | 显示全部楼层
贴一下我的设置模板:
[global]
        netbios name = |NAME|
        display charset = |CHARSET|
        interfaces = |INTERFACES|
        server string = |DESCRIPTION|
        unix charset = |CHARSET|
        workgroup = |WORKGROUP|
        bind interfaces only = yes
        deadtime = 30
        enable core files = no
        invalid users = root
        local master = yes
        map to guest = Bad User
        max protocol = SMB2
        min receivefile size = 16384
        null passwords = yes
        passdb backend = smbpasswd
        security = user
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        use sendfile = yes

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

使用道具 举报

 楼主| 发表于 2020-2-12 17:01 | 显示全部楼层
jzhang33 发表于 2020-2-10 20:54
不知道你是刷的什么版本的固件,我怀疑是不是组件不全导致的,这个基本上不用设置就可以使用的。

我是从下面这下载的。也是恩山找的。
https://www.right.com.cn/forum/thread-1411761-1-1.html
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 16:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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