1、SAMBA的安装。
执行下面命令:(安装文件自行下载)
rpm -Uvh samba-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-client-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-common-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-winbind-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-winbind-clients-3.6.9-151.el6.x86_64.rpm
2、SAMBA服务启动。
service smb stop
service smb start
service smb restart
3、/etc/samba/smb.conf的修改。
[global]
display charset = utf8
unix charset = utf8
dos charset = utf8
netbios name = F
server string = F
security = share
wide links = yes
unix extensions = no
[LOG](共享文件夹名称)
path = /tmp/log
writeable = yes
browseable = yes
guest ok = yes
create mask = 0777
4、SELinux设定,修改/ect/selinux/config。
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
5、设置SAMB自启动。
/etc 下执行setup命令。系统设置中,选择smb自启动。