Centos 6.5 安装 samba


查看是否安装samba
rpm -qa | grep samba
+++++++++++++++++++++++++++++++++++++++++++++
samba-3.6.23-35.el6_8.x86_64
samba-winbind-clients-3.6.23-35.el6_8.x86_64
samba-client-3.6.23-35.el6_8.x86_64
samba4-libs-4.0.0-58.el6.rc4.x86_64
samba-common-3.6.23-35.el6_8.x86_64
samba-winbind-3.6.23-35.el6_8.x86_64
+++++++++++++++++++++++++++++++++++++++++++++

没有安装 yum install samba -y

创建共享目录
mkdir /home/share

赋予目录权限
chmod 777 /home/share

配置访问
 vi /etc/samba/smb.conf

 # near line 58: add follows
unix charset = UTF-8

# line 75: change (Windows' default)
workgroup = WORKGROUP

# line 81: uncomment and change IP address you allow
hosts allow = 127. 10.0.0.

# line 102: change (no auth)
security = share

# add follows to the end

[Share]
# any name you like
   path = /home/share

# shared directory
   writable = yes

# writable
   guest ok = yes

# guest OK
   guest only = yes
# guest only

   create mode = 0777
# fully accessed

   directory mode = 0777
# fully accessed
   share modes = yes


启动samba
service smb start
service nmb start

开机启动samba
chkconfig smb on

chkconfig nmb on

Windows 客户端测试

Centos 6.5 安装 samba_第1张图片

Centos 6.5 安装 samba_第2张图片

你可能感兴趣的:(Centos)