小米路由器配置可用samba访问 移动硬盘 本文共有4008个字,关键词: 要使用ssh连接到路由器,然后进行如下的操作: 操作完成之后,如果想要让路由器每次重启自动运行, 需要到进入一个目录 ,输入类似以下内容, 这里假设为/etc/init.d目录 然后 vim isamba 输入: #!/bin/sh /etc/rc.common # Copyright (C) 2008-2012 OpenWrt.org START=99 start() { #rm /etc/config/samba #cp /etc/config/samba.ok /etc/config/samba /etc/init.d/samba restart } stop() {} 并给其执行权限 然后 cd /etc/rc.d ln -s /etc/init.d/isamba /etc/rc.d/S99isamba 路由器操作如下: vi /etc/config/samba config samba option 'name' 'zhu-dev' option 'workgroup' 'WORKGROUP' option 'description' 'Share from router' option 'homes' '1' config 'sambashare' option 'read_only' 'no' option 'create_mask' '0777' option 'dir_mask' '0777' option 'name' 'XiaoMi' option 'path' '/userdisk/data' option 'guest_ok' 'yes' option 'force_user' 'root' option 'browseable' 'yes' config 'sambashare' option 'read_only' 'no' option 'create_mask' '0777' option 'dir_mask' '0777' option 'name' 'extdisks' option 'path' '/extdisks/' option 'guest_ok' 'yes' option 'force_user' 'root' option 'browseable' 'yes' vim smb.conf [global] netbios name = zhu-dev interfaces = br-lan wan #bind interfaces only = yes server string = Share from router unix charset = UTF8 workgroup = WORKGROUP browseable = yes deadtime = 30 domain master = yes encrypt passwords = true enable core files = no guest account = nobody guest ok = yes invalid users = local master = yes load printers = no map to guest = Bad User min receivefile size = 16384 null passwords = yes obey pam restrictions = yes passdb backend = smbpasswd preferred master = yes printable = no smb encrypt = disabled smb passwd file = /etc/samba/smbpasswd socket options = SO_SNDBUFFORCE=8388608 SO_RCVBUFFORCE=8388608 smb2 max trans = 1048576 smb2 max write = 1048576 smb2 max read = 1048576 write cache size = 262144 syslog = 2 syslog only = yes use sendfile = yes writeable = yes log level = 1 unicode = True max log size = 500 log file = /tmp/log/samba.log default cpumask = 0x2 ifgroup ifnames = eth0.1 ifgroup cpumask = 0x2 ifgroup ifnames = wl0,wl1 ifgroup cpumask = 0x1 server role = STANDALONE [homes] comment = Home Directories browsable = no read only = no create mode = 0750 [XiaoMi] path = /userdisk/data read only = no guest ok = yes create mask = 0777 directory mask = 0777 browseable = yes force user = root [extdisks] path = /extdisks/ read only = no guest ok = yes create mask = 0777 directory mask = 0777 browseable = yes force user = root rm /etc/config/samba cp /etc/config/samba.ok /etc/config/samba /etc/init.d/samba restart 「一键投喂 软糖/蛋糕/布丁/牛奶/冰阔乐!」 赞赏 × 梦白沙 (๑>ڡ<)☆谢谢老板~ 1元 2元 5元 10元 50元 任意金额 2元 使用微信扫描二维码完成支付 版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。 随手发现 2022-06-11 评论 339 次浏览