File directory sharing between Linux hosts

Source: Internet
Author: User

1, in three host 10.0.1.1,10.0.1.2,10.0.1.3 shared directory/opt/share;

2, #vi/etc/samba/smb.conf

#:$[Carriage Return]

Add at the end of the file:
[Share]
Comment = ShareFile
Path =/opt/share
Public = yes
writable = yes
printable = no
Guest OK = yes
Create mask = 777
Directory mask = 777

3. #service SMB Restart

#smbpasswd-A
Input: 123456 (password)

4. Create a directory for other machines and set up file sharing:

10.0.1.2 (10.0.1.3):

#mkdir-P/opt/share
#mount-T CIFS//10.0.1.1/share/opt/share-o username=root,password=123456

File directory sharing between Linux hosts

Related Article

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.