標籤:style blog http color io os ar for 檔案
前提: 關掉防火牆 service iptables stop
或
chkconfig iptables off (永久關閉防火牆)
關閉SELinux
setenforce 0
或
vi /etc/sysconfig/selinux
把 SELINUX=enforcing 修改為SELINUX= disabled
退出儲存,並且重啟
一 安裝 [[email protected] lee]# yum install samba smbfs smbclient
二 建立目錄 [[email protected] ~]$ mkdir share [[email protected] ~]$ chmod 777 /home/lee/share/
三 修改samba設定檔 [[email protected] lee]# cp /etc/samba/smb.conf smb_backup.conf [[email protected] lee]# vi /etc/samba/smb.conf 將下面部分加入到smb.conf 末尾 [share]
path = /share available = yes browseable = yes public = yes writable = yes
四 建立samba賬戶 [[email protected] lee]# touch /etc/samba/smbpasswd [[email protected] lee]# smbpasswd -a lee
如果還不能訪問,嘗試修改/etc/samba/smb.conf# ----------------------- Standalone Server Options ------------------------## Scurity can be set to user, share(deprecated) or server(deprecated)## Backend to store user information in. New installations should# use either tdbsam or ldapsam. smbpasswd is available for backwards# compatibility. tdbsam requires no further configuration.
security = user==> security = share
來源: <http://blog.chinaunix.net/uid-8625039-id-3983932.html>
其他細節參考:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html
來自為知筆記(Wiz)
centos 6.4 samba 安裝配置(記錄)