About Samba, got n long, in the Internet to find a variety of explanations, finally found a simple, practical one, below I use my own language to describe:
1. Download and install Samba:yum-y install Samba
2, Configuration samba:1). Backing up Samba profiles: Cp/etc/samba/smb.conf/etc/samba/smb.conf.bak
2). Add the following fields at the end of the/etc/samba/smb.conf file
[Sambas]
Comment = Sambas
Path =/home/sambas
writable = yes
3) users in/etc/passwd in Linux have little to do with users in Samba, and, as you can say, all users of samba must be users who already exist in the system. We want to empower system users to access Samba by command:
smbpasswd-a Koorey #添加用户koorey到Samba用户数据库中
When this command is finished, you are prompted to set the access password for the new user Koorey. Finally, the service SMB Restart command is OK. At this point, the Samba server is ready. Don't believe me? Why? Because there are chapters in the back, haha, that's right. In theory, it's really set up, but don't overlook the existence of Linux security: Iptables and SELinux.
3, iptables:1) service iptables stop
2) 5
iptables-i rh-firewall-1-input 5 - M State--state new-m tcp-p TCP--dport 445-j ACCEPT
iptables-i rh-firewall-1-input 5 - P udp-m UDP--dport 137-j ACCEPT
iptables-i rh-firewall-1-input 5 - P udp-m UDP--dport 138-j ACCEPT
Iptables-save
Service Iptables Restart
4, Selinux 1)Setenforce 0
Vi/etc/selinux/config Change selinux=enforcing to selinux=disabled
2) Setsebool-psamba_enable_home_dirs on
SETSEBOOL-PSAMBA_EXPORT_ALL_RW on
after the end of the matter: getsebool-a | grep samba
5, finally in the Windows system, the results of the visit are as follows:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/2B/wKioL1V1mNWjD97WAAEL64xmuvI379.jpg "title=" Abc.jpg "alt=" Wkiol1v1mnwjd97waael64xmuvi379.jpg "/>
This article is from the "Huahuifangje" blog, make sure to keep this source http://4706547.blog.51cto.com/4696547/1659843
Linux Samba Server Configuration introduction