概念:
用于Web连接和客户端与服务器之间的信息沟通,window系统访问linux系统的文件共享服务,适于局域网中使用
特点:
1.较安全,可对用户进行一定的限制,需同一网段进行访问
2.建立在NetBIOS协议之上的应用协议,是基于TCP138、139两个端口的服务,传输速度快
环境:
关闭防火墙
客户端与服务端在同一网段
配置:
#yum安装samba服务
[root@192 ~]# yum -y install samba
#编辑samba配置文件
[root@192 ~]# vim /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
#配置匿名用户访问
map to guest = bad user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S