windows 访问 smb 共享目录都正常,但小米摄像头访问却提示传输异常,关键是 xiaomi_camera_videos 目录都创建出来了,还是提示传输异常。
网上资料翻了翻,来回修改 smb.conf 文件,一顿胡乱操作,竟然可以用了。备份一下配置文件,有相同问题的同学可以取走试试。
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
client min protocol = NT1
client max protocol = SMB3
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
[xiaomi]
comment = NAS共享盘
path = /data/xiaomi/
guest ok = yes
guest only = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects =
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users =
invalid users =
read list =
write list =
min protocol = NT1
ntlm auth = disabled