linux 架构smb samba cifs

参考

https://blog.csdn.net/sparrowwf/article/details/81064318

 

smb.conf

#指定smb1,加上:

[global]
        workgroup = SAMBA
        server min protocol = NT1

参考:
https://askubuntu.com/questions/1265923/configuring-20-04-samba-for-smbv1#:~:text=Second%2C if you are talking about that specific,to must have SMB1 enabled on its side.

挂载命令

mount -t cifs -o username=test,password=123456,rw,file_mode=0777,dir_mode=0777,uid=0,gid=0,vers=2.0 //192.168.1.1/share  /mnt/share

 

有时Permission denied重启服务器可以解决

posted @ 2021-12-28 15:01  小黑狐狸1001  阅读(55)  评论(0)    收藏  举报