Linux Samba Simple configuration

Source: Internet
Author: User

First, check whether the Linux system has installed samba software;

650) this.width=650; "style=" Float:none; "title=" 1 View the Samba software version in the system. png "src=" http://s5.51cto.com/wyfs02/M02/85/FE/ Wkiol1exyl_jiis4aaacexqiux8753.png-wh_500x0-wm_3-wmp_4-s_1920054147.png "alt=" WKioL1exyl_ Jiis4aaacexqiux8753.png-wh_50 "/>

Second, mount a good CD-ROM, ready to install the package ready;

650) this.width=650; "Title=" 2 View installation package. png "src=" http://s5.51cto.com/wyfs02/M02/85/FE/ Wkiol1exyu2xyqviaabqjgumfua113.png-wh_500x0-wm_3-wmp_4-s_2894439239.png "alt=" Wkiol1exyu2xyqviaabqjgumfua113.png-wh_50 "/>

Third, start to install Samba and samba related software packages;

650) this.width=650; "style=" Float:none; "title=" 3 installation package. png "src=" http://s4.51cto.com/wyfs02/M00/85/FF/ Wkiom1exymcxf3f5aaa9azy8e1s600.png-wh_500x0-wm_3-wmp_4-s_2658905738.png "alt=" Wkiom1exymcxf3f5aaa9azy8e1s600.png-wh_50 "/>

After installation, check the installation information;

650) this.width=650; "Title=" 4 View the post-installation directory. png "src=" http://s4.51cto.com/wyfs02/M00/85/FF/ Wkiom1exy0izx7c2aaabno-dndm876.png-wh_500x0-wm_3-wmp_4-s_138383949.png "alt=" Wkiom1exy0izx7c2aaabno-dndm876.png-wh_50 "/>

Five, through the query, you can use service to start Samba services;

650) this.width=650; "style=" Float:none; "title=" 5 Start the SMB service. png "src=" http://s5.51cto.com/wyfs02/M01/85/FE/ Wkiol1exymhbaqhsaaarepmfequ041.png-wh_500x0-wm_3-wmp_4-s_4240673753.png "alt=" Wkiol1exymhbaqhsaaarepmfequ041.png-wh_50 "/>

Six, the provision of samba services, vi/etc/samba/smb.conf, simple sharing configuration, here with Ip+user for sharing access control;

650) this.width=650; "style=" Float:none; "title=" 6 user and IP control. png "src=" http://s4.51cto.com/wyfs02/M00/85/FF/ Wkiom1exymls1ievaaasp85ykem969.png-wh_500x0-wm_3-wmp_4-s_3979421982.png "alt=" Wkiom1exymls1ievaaasp85ykem969.png-wh_50 "/>

Vii. test access to the Linux Samba shared directory in a PC Windows system;

The IP of this PC is not added to the Allow host of the configuration file, so even if the user name password is correct, it still cannot be accessed properly.

The premise is to note that Iptables,selinux allows Samba to pass; Here the test closes the iptables,selinux;

650) this.width=650; the "title=" 7 test does not include access to the IP. png "src=" http://s2.51cto.com/wyfs02/M01/85/FF/ Wkiom1exy-3s868eaadwrloi-t0332.png-wh_500x0-wm_3-wmp_4-s_2181562556.png "alt=" Wkiom1exy-3s868eaadwrloi-t0332.png-wh_50 "/>

Eight, add the PC IP, so that it can access the Linux Samba share directory;

650) this.width=650; "style=" Float:none; "title=" 8 User and IP control added pcip.png "src=" http://s1.51cto.com/wyfs02/M01/85/FF/ Wkiom1exymbtizsoaaaq-0y-_ie876.png-wh_500x0-wm_3-wmp_4-s_3110361757.png "alt=" wKiom1exymbTizsoAAAQ-0y-_ Ie876.png-wh_50 "/>

Test access to Linux on the PC can be normal access, if the configuration files are allowed, not yet normal access, please switch to the Linux directory to see the read and write access to the shared file;

650) this.width=650; "title=" 8 client test. png "src=" http://s1.51cto.com/wyfs02/M00/85/FE/wKioL1exzHqyIKscAADWQ_ Adhd0392.png-wh_500x0-wm_3-wmp_4-s_2100053629.png "alt=" Wkiol1exzhqyikscaadwq_adhd0392.png-wh_50 "/>

650) this.width=650; "style=" Float:none; "title=" 9linux test. png "src=" http://s1.51cto.com/wyfs02/M01/85/FE/ Wkiol1exymasjyifaaar1oxcto0262.png-wh_500x0-wm_3-wmp_4-s_1451715950.png "alt=" Wkiol1exymasjyifaaar1oxcto0262.png-wh_50 "/>

This article is from the "Amway" blog, make sure to keep this source http://119806.blog.51cto.com/109806/1839020

Linux Samba Simple configuration

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.