How Linux hosts share directories to Windows hosts

Source: Internet
Author: User

Linux host shared directories can be implemented with Samba

First of all, look at the encyclopedia on the introduction of samba:

Samba is a free software that implements the SMB protocol on Linux and UNIX systems, consisting of servers and client programs. SMB (Server Messages block, information service blocks) is a kind of communication protocol for sharing files and printers on LAN, which provides shared services of files and printers among different computers in LAN. The SMB protocol is a client/server protocol that allows clients to access shared file systems, printers, and other resources on the server. By setting up "NetBIOS over TCP/IP", Samba will not only share resources with local network hosts, but also share resources with computers around the world.

How to share, and look down:

To access a directory shared by a Linux host on a Windows host, if the two hosts are on the same network segment, you can ping each other.

Then do the following on the Linux host:

(1) Update smb.conf files in/ect/samba directory in Linux host, edit files, add content

[Share]

Path=/home

Available=yes

Public=yes

Guest Ok=no

Valid User=root

Directory mask=0777

(2) Set password, can be customized

      linux:/etc/samba# smbpasswd-a

      linux:/etc/samba# smbpasswd-a Root

(3) Restarting the SMB service

      linux:/etc/samba# Service SMB restart

Now, in the Windows host open the Start button, enter the IP address of the \\Linux host, enter the user name password in the box, you can access to the directory on the Linux host.

Also, if the Windows host shares a folder, how to view the share on the Linux host:

Method: Open the Linux host File Explorer Nautilus, enter the IP address of the Smb://windows host, enter the user name password in the box to access the shared Windows host.

  

How Linux hosts share directories to Windows hosts

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.