chmod 777 /tmp/samba
touch /tmp/samba/sharefiles
echo "111111" > /tmp/samba/sharefiles
启动:/etc/init.d/smb start
检查配置的smb.conf是否正确 testparm
末尾处加入:
1. [share]
2. comment = share all
3. path = /tmp/samba
4. browseable = yes
5. public = yes
6. writable = no
测试:win机器浏览器输入 file://192.168.0.22/share
或者运行栏输入: \192.168.0.22
原文:http://blog.51cto.com/amazing61/2063901