samba最快速匿名共享
1、需要先关闭SELinux和防火墙。
2、关闭SELinux:# vim /etc/sysconfig/selinuxSELINUX=disabled关闭防火墙:# systemctl stop firewalld# systemctl disable firewalld
3、安装samba# yum install samba
4、配置文件/etc/samba/smb.conf设置成匿名访问,其中samba3和samba4门溘曝晖版本设置有点不一样。samba3版本把[global]者憨骆吒段中的security = user改成security = sharesamba4版本在[global]中添加一句:map to guest = bad user

6、配置完成后,重启samba服务# systemctl restart smb
7、远程访问共享的目录Linu垓矗梅吒x客户端:使用smbclient来操作远程共享的文件查看文件# smbclient -c "ls" //192.168.3.21/share_name创建目录# smbclient -c "mkdir test" //192.168.3.21/share_name也可以使用mount把共享目录挂载到某个目录上# mount -t cifs -o username=root //192.168.3.21/share_name /mnt

8、Windows远程访问:随便打开文件浏览器,在地址栏上填上samba服务的IP地址
