Centos6.5 install samba
Samba needs to be installed every time you reinstall the system. Record it here.
Generally, the newly installed system comes with samba-related packages, as shown below:
rpm -qa | grep -i samba
Samba-common-3.6.9-164.el6.x86_64 // configuration file and syntax validation samba-winbind-clients-3.6.9-164.el6.x86_64 // windows Domain client samba-winbind-3.6.9-164.el6.x86_64 // windows Domain
However, the executable package of samba is missing.
Directly install samba in yum. The related packages are updated and installed as follows:
Running Transaction Updating: samba-common-3.6.23-20.el6.x86_64 1/9 Updating: samba-winbind-clients-3.6.23-20.el6.x86_64 2/9 Updating: samba-winbind-3.6.23-20.el6.x86_64 3/9 Installing: samba-3.6.23-20.el6.x86_64 4/9 Updating: libsmbclient-3.6.23-20.el6.x86_64 5/9 Cleanup: libsmbclient-3.6.9-164.el6.x86_64 6/9 Cleanup: samba-common-3.6.9-164.el6.x86_64 7/9 Cleanup: samba-winbind-clients-3.6.9-164.el6.x86_64 8/9 Cleanup: samba-winbind-3.6.9-164.el6.x86_64 9/9 Verifying: samba-winbind-3.6.23-20.el6.x86_64 1/9 Verifying: samba-common-3.6.23-20.el6.x86_64 2/9 Verifying: samba-winbind-clients-3.6.23-20.el6.x86_64 3/9 Verifying: samba-3.6.23-20.el6.x86_64 4/9 Verifying: libsmbclient-3.6.23-20.el6.x86_64 5/9 Verifying: samba-winbind-clients-3.6.9-164.el6.x86_64 6/9 Verifying: libsmbclient-3.6.9-164.el6.x86_64 7/9 Verifying: samba-winbind-3.6.9-164.el6.x86_64 8/9 Verifying: samba-common-3.6.9-164.el6.x86_64
After installation is complete, configure an account:
smbpasswd root -a
Add a shared directory
cp /etc/samba/smb.conf /etc/samba/smb.conf.bakvi /etc/samba/smb.conf
Add:
[Share] comment = Public Stuff path =/home/share public = yes writable = yes browseable = yes
Disable selinux
setenforce 0
Start smb server
Service smb startservice iptables stop // Virtual Machine debugging touch test.txt // Test
Access: \ {ip} \ share on windows
See test.txt