Centos6.5 install samba

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.