Prerequisite: Disable the Firewall Service iptables stop
Or
Chkconfig iptables off (firewall permanently disabled)
Disable SELinux
Setenforce 0
Or
VI/etc/sysconfig/SELinux
Change SELinux = enforcing to SELinux = disabled.
Exit save and restart
1. Install [[email protected] Lee] # Yum install Samba smbfs smbclient
2. Create a directory [[email protected] ~] $ Mkdir share [[email protected] ~] $ Chmod 777/home/LEE/share/
3. Modify the samba configuration file [[email protected] Lee] # cp/etc/samba/smb. conf smb_backup.conf [[email protected] Lee] # vi/etc/samba/smb. conf adds the following parts to SMB. [Share] at the end of conf
Path =/share available = Yes browseable = Yes Public = Yes writable = Yes
4. Create a samba account [[email protected] Lee] # Touch/etc/samba/smbpasswd [[email protected] Lee] # smbpasswd-a Lee
If no access is available, try to modify/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 shoshould # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration.
Security = user ==> Security = Share
Source: http://blog.chinaunix.net/uid-8625039-id-3983932.html>
Other details: http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html
From Weizhi note (wiz)
Centos 6.4 Samba installation configuration (record)