参考文章:https://www.jianshu.com/p/9572ba5ed6dd
经验证,以下仅能被摄像机访问,但在wIndow是无法访问。
1.安装samba
sudo apt install samba
2.创建目录
mkdir /home/abc/share
sudo chmod 777 -R share
3.配置smb.conf文件
sudo vim /etc/samba/smb.conf
[global]
workgroup = WORKGROUP #原有的
server min protocol = NT1 #新增的,小米摄像头只支持SMB 1.0
[share] #新增的共享字段
path = /home/abc/share
public = yes
writable = yes
available = yes
browseable = yes
read only = no
3.配置samba的密码
sudo smbpasswd -a abc
4.重启服务
sudo service smbd restart
sudo service nmbd restart