How Linux accesses Windows shared files __linux

Source: Internet
Author: User
Overview

There are many file-sharing methods for files between Linux and Windows, such as FTP, SAMBA, SCP, Smbfs, CIFS


1. FTP and samba have to set up servers on Linux, before writing a blog about the Samba server build

2. SCP needs Windows to support SSH2

3.SMBFS is more convenient, but later iterations have been replaced by CIFS

SMBFS Tutorial: http://blog.csdn.net/yilovexing/article/details/77185633


CIFS Server Configuration

1. Set up a shared directory under Windows, called the Defaultgroup folder

2. Install cifs-utils under Linux yum/apt-get very convenient to install

sudo apt-get install cifs-utils

sudo yum install cifs-utils

3. Mount is a Linux command, it can be a Linux "file" attached to a Linux folder, so that the Windows Division and ~/dell This directory, so we just access this folder, it is quite To access the partition.

Linux mount (Mount command) Detailed: http://tutu.spaces.eepw.com.cn/articles/article/item/70737

4. Manual execution mode

sudo mount-t cifs//192.168.1.74/defaultgroup/home/zhangyi/dell/-o Username=dell

You are prompted for a password, and you can then see the shared directory of Windows.

5. Automated Scripting Mode (Ubuntu for example)

Boot Boot execution

sudo vi/etc/rc.local

Add to

EXEC mount-t cifs//192.168.1.74/defaultgroup/home/zhangyi/dell/-o username= "DELL", password= "g3nt00567"


sudo mount-t cifs//windowsip address/windows folder/linux folder-o username= "account", password= "password"




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.