12

openwrt挂载硬盘并开启读写权限

 1 year ago
source link: http://zifu.ltd/openwrt-mount-hard-disk-and-open-read-write-permission.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Modys Blog

Learning Linux and Python | On The Road

跳至内容

首先插入移动硬盘,用SSH登陆路由器进行硬盘分区,格式化成ext4,如果不会的可以在windows用DiskGenius分区软件进行格式化。
进入路由器挂载点,添加挂载点,勾选启用挂载点,UUID选择移动硬盘的sda1(可能不一样),挂载点自己填写/mnt/sda1,保存。

挂载
第二部进入网络共享,添加共享目录,如图所示
smaba
在编辑模板中把invalid users = root前加#注释掉
这样做完后,在本地添加映射是没有写入权限的,ssh登陆路由器,

smbpasswd -a root
如果要匿名用户也有权限,输入
chmod 777 /mnt/sda1

重启路由器即可。

本条目发布于 2021 年 07 月 21 日。属于My Life 分类。 被贴了: linux, openwrt, 路由器 标签。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK