本文共 475 字,大约阅读时间需要 1 分钟。
要求共享一个目录,任何人都可以访问,即不用输入密码即可访问,要求只读
[global]部分 MYGROUP 改为WORKGROUPsecurity = user 改为 security = sharemkdir /tmp/sambachmod 777 /tmp/samba
touch /tmp/samba/sharefilesecho "111111" > /tmp/samba/sharefiles启动:/etc/init.d/smb start 检查配置的smb.conf是否正确 testparm 末尾处加入:1. [share]2. comment = share all3. path = /tmp/samba4. browseable = yes5. public = yes6. writable = no
测试:win机器浏览器输入 file://192.168.0.22/share
或者运行栏输入: \192.168.0.22转载于:https://blog.51cto.com/amazing61/2063901