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.repo2. mount isomount/dev/cdrom/mnt/cdrom3.yum install yum-yinstallsamba * -- skip-broken4. modify the configuration file vi/etc/samba /... 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
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