1.先看看自己的机子上是否已经安装Samba。
rpm -qa | grep samba
2.主要配置文件 /etc / samba / smb.conf
3.服务端的设定
[global]
workgroup = WORKGROUP #定义工作组
server string = Linux Samba Server # 显示名称
client code page = 950
log file = /var/log/samba/log.%m
max log size = 500 # 那个 500 数字是 Kb 喔!
security = user #定义登录级别 share为无需验证登录
现在我想把自己的/tmp 共享出去,要求要验证登录
[tmp]
comment = public
path = /tmp #定义共享目录
read only = no
public =yes
writeable =yes
4.服务的启动
service smb restart ; service nmb restart