CentOSLinux6.4 simple guide to Samba configuration

Source: Internet
Author: User
CentOSLinux64 simple guide to Samba configuration this article is a simple guide to configuring Linux for Windows to share connections under CentOSLinux64. only the configuration steps are written. There are many first steps on the Internet: yuminstallsambasamba-clientsamba-swat CentOS Linux 6.4 Simple Guide to Samba configuration
This article is a concise guide for configuring Linux shared connections for Windows in CentOS Linux 6.4. it only describes the configuration steps. There are many first steps on the Internet: yum install samba-client samba-swat installation package Step 2: configure the firewall, vim/etc/sysconfig/iptables, and enter the following content, open the relevant port-a input-m state -- state NEW-m tcp-p tcp -- dport 137-j ACCEPT
-A input-m state -- state NEW-m tcp-p tcp -- dport 138-j ACCEPT
-A input-m state -- state NEW-m tcp-p tcp -- dport 139-j ACCEPT
-A input-m state -- state NEW-m tcp-p tcp -- dport 445-j ACCEPT after editing, enter the command: service iptables restart Step 3: disable selinux, otherwise, you cannot perform the write operation vim/etc/selinux/config to change the value of SELINUX to disabled. then restart Step 4: vim/etc/samba/smb. conf modify the configuration file user: The Samba Server shared directory can only be accessed by authorized users. The Samba Server is responsible for checking the correctness of the account and password. The account and password should be set up in the Samba Server smbpasswd: This method uses the smb tool smbpasswd to set a Samba password for system users (real users or virtual users, the client uses this password to access Samba resources. the content in red box 1 is the shared name, which is paliec. in windows, \ xxx is used. xxx. xx. xx \ paliec Red Square 2 is the user name, here is pub, Red Square 3 is the path to be shared Step 5: Use smbpasswd-a pub, set the password for pub user Step 6: chkconfig -- level 35 smb on set samba service startup Step 7: service smb restart samba service

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.