安裝:yum install -y samba samba-client
配置文件:/etc/samba/smb.conf
搭建個服務,匿名用戶,可以上傳和下載
mkdir /tmp/sambadir
chown nobody:nobody /tmp/sambadir
touch /tmp/sambadir/111.txt
mkdir /tmp/sambadir/111
修改驗證方式:security=share
檢測配置文件是否正確 :testparm
啓動服務:/etc/init.d/smb start
設置開機啓動:chkconfig --level 35 smb on
在windows 訪問 samba服務器就可以了。
\\192.168.0.109