1、安装samba服务
yum -y install samba
2、配置samba
vim /etc/samba/smb.conf
[global]
workgroup = ME
netbios name = TEST
server string = Samba Server
security = user
map to guest = Bad User
[test]
path = /data/
readonly = yes
browseable = yes
guest ok = yes
writable = yes
create mask = 0666
directory mask = 0765
3、重启samba服务
service smb restart