Samba service configuration sharing

Source: Internet
Author: User

1. The local machine is not connected to the Internet. Set yum to search for vi/etc/yum from the local device. repos. d/Centos-Media.repo 2. mount iso mount/dev/cdrom/mnt/cdrom3.yum install yum-y install samba * -- skip-broken4. modify the configuration file vi/etc/samba/smb. conf Add the shared directory [web] at the end of the configuration file // set the shared name path =/var/www/html // set the shared directory browseable = yes // readable writable = yes/ /writable 5. create a samba user smbpasswd-a apache/must have this user in the system (as long as apache is installed in rpm, there are apache users)-d disable-e enable-x Delete 6. start service smb restart Linux shared folder permission Division 1. directory permission setfacl-m u: apache: rwx-R/var/www/html setfacl-m d: u: apache: rwx-R/var/www/html 2. web permission-the apache service process executes the discount rpm package. (the User in the source code package is not modified by apache in the configuration file modification Search User.) Client Connection: linux: mount // ip address/shared name/mnt-user = user name, pass = PASSWORD window end: 1. network neighbors 2. shared name under dos \ IP address \ Settings 3. disk Drive ing

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.