Build a Samba File Sharing Server

Source: Internet
Author: User

First, you can view the Samba package by attaching it to the CD.

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M01/45/D0/wKioL1PrjiCisTy6AANAmppSqAA450.jpg" width = "736" Height = "370" alt = "wkiol1prjicisty6aanamppsqaa450.jpg"/>

650) This. width = 650; "style =" width: 758px; Height: 436px; "Title =" 2.png" src = "http://s3.51cto.com/wyfs02/M00/45/CF/wKiom1PrjZWSMwoTAAI3tAruFrI234.jpg" width = "732" Height = "432" alt = "wkiom1prjzwsmwotaai3tarufri234.jpg"/>

 

You can also install it using yum.

CD/etc/yum. Repos. d/

VI rhel-source.repo

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M02/45/D0/wKioL1PrkDrDcWbjAAKUQI23n9E312.jpg" width = "737" Height = "473" alt = "wkiol1prkdrdcwbjaakuqi23n9e312.jpg"/>

Name

Baseurl. This is the path.

If enabled is set to 0, it is disabled. If enabled is set to 1, it is enabled;
If the value of gpgcheck is 0, the gpgkey is not detected. If the value of gpgcheck is 1, the value is set to 0;

 

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M02/45/D0/wKioL1PrmIKw1rUuAAHeOauMPAA235.jpg" width = "735" Height = "416" alt = "wkiol1prmikw1ruuaaheoaumpaa235.jpg"/>

You can use this command to view the main configuration file of SMB.

Grep-V "^ #"/etc/samba/smb. conf | grep-V "^;" | grep-V "^ $" ^ C

 

650) This. width = 650; "style =" width: 782px; Height: 464px; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M01/45/CF/wKiom1PrmAPw3RZ6AAH-iZgNIJ0645.jpg" width = "743" Height = "460" alt = "wKiom1PrmAPw3RZ6AAH-iZgNIJ0645.jpg"/>

650) This. width = 650; "style =" width: 764px; Height: 484px; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M00/45/D0/wKioL1Prml-BSE4uAAJjhn4zYGU637.jpg" width = "850" Height = "477" alt = "wKioL1Prml-BSE4uAAJjhn4zYGU637.jpg"/>

Modify the Red Line

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M02/45/D0/wKioL1PrnqrjMraeAAJNRsGNl44172.jpg" width = "747" Height = "468" alt = "wkiol1prnq1_mraeaajnrsgnl44172.jpg"/>

Find a machine for verification.

650) This. width = 650; "style =" width: 821px; Height: 459px; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M00/45/CF/wKiom1Prni3S0BHTAAH2v60i06Q288.jpg" width = "758" Height = "455" alt = "wkiom1prni3s0bhtaah2v60i06q288.jpg"/>

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M00/45/D0/wKioL1Prn3bS5EELAAGXwvl9da8585.jpg" width = "864" Height = "409" alt = "wkiol1prn3bs5eelagxwvl9da8585.jpg"/>

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M01/45/D0/wKioL1ProOWyX-xAAAGXwvl9da8077.jpg" alt = "wKioL1ProOWyX-xAAAGXwvl9da8077.jpg"/>

650) This. width = 650; "Title =" 2.png" src = "http://s3.51cto.com/wyfs02/M00/45/CF/wKiom1Prn-vi_8YfAAJeRH5zbXY150.jpg" width = "907" Height = "469" alt = "wKiom1Prn-vi_8YfAAJeRH5zbXY150.jpg"/>

Valid valid user: hanxu or root user

Hanlg root has write permission

 

 

You can also restrict client access

650) This. width = 650; "Title =" 1.png" src = "http://s3.51cto.com/wyfs02/M02/45/D0/wKioL1Pro32iK4sVAAJQ9WAxtcw969.jpg" alt = "wkiol1pro32ik4svaajq9waxtcw969.jpg"/>

This article is from the "diaosi life" blog and will not be reproduced!

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.