Mount Windows shared directory on Linux

Source: Internet
Author: User

Mount Windows shared directory on Linux 1. Sharing Windows folders

Before mounting, create a user with a password (which the current user can), share the folder you want to mount, and give read and write permissions



2. Mount the Windows shared directory

Command: mount-t cifs-o username=zhz,password=123456//10.0.10.1/trunk/data/developer/test

3. Use Mount-l to see if the mount is successful
4. Uninstall the shared directory that is already mounted umount/data/developer/test


Linux folder 1 is mounted on Windows. Install SAMBA2. Create an AccountUseradd-m-G-yourName
Smbpasswd-a YourName
3. Modify the configuration file vim/etc/samba/smb.conf[YourName]
Comment = Web root
Path =/data/developer/yourname/shared
Read Only = no
Public = yes
writable = yes
Create mask = 0777
Directory mask = 0777
Valid users = YourName
4. Restart Samba,service SMB restart5. Test if you can connectAccess in Windows Explorer: \ \ Test Machine Ip\yourname


Objective:
1. File transfer between the machine and the test machine
2. Native debug code, Linux environment running

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.