Thanks to 造福于人
https://hub.fastgit.xyz/DeftWork/samba
搭建指令
#!/bin/bash
# -----------------------------------------------------------------
# FileName: sh-samba.sh
# Date: 2022-07-05
# Author: jiftle
# Description:
# -----------------------------------------------------------------
docker run -d -p 139:139 -p 445:445 \
-v /home/john/Downloads:/share/data \
elswork/samba \
-u "1000:1000:john:john:123456" \
-s "SmbShare:/share/data:rw:john"
-u 表示用户,用户需要宿主机系统内存在,密码可以自己设置
-s 共享目录
Feature
- ARM64 or AMD64
Useage
windows访问共享目录
在windows的“运行”命令框中输入\\192.168.2.211
,输入访问共享资源的账号和密码,就可以登陆到共享目录了。
Termux
pkg install samba
$PREFIX/share/doc/samba/smb.conf.example to $PREFIX/etc/smb.conf and modify it with your settings
https://blog.csdn.net/HuangChen666/article/details/112262298
https://hub.fastgit.xyz/termux/termux-packages/issues/4501