安装Samba 服务
yum install -y samba samba-client
Samba配置文件 /etc/samba/smb.conf
全局定义
[global]
workgroup = WorkGROUP 工作组设定 server string = Samba Server Version %v security = user ‘安全的四种验证方式 share;user;server;domain passdb backend = tdbsam log file = /var/log/samba/log.%m max log size = 50 ‘日志的存放位置和大小限制
4.实例一:添加一个任何人可以访问的文件夹
首先,打开smb.con配置文件:
workgroup =workgroup security = share ‘(完全共享,不需要用户名和密码)
然后再结尾处添加如下:
[sharetest1] comment = test share 1 path = /tmp/sharetest1 browseable = yes public = yes writable = yes
记得先要建立/tmp/sharetest1目录,重启smb服务
/etc/init.d/smb restart
测试.OK
原文地址:http://gogoo.blog.51cto.com/543271/1841346