Mount windows shared folders to Centos

Source: Internet
Author: User
1. share a folder in Windows 7 (1) create a user: devin, password: admin123 (2) create a folder on the E disk, share, and set sharing to user devin, and grant the permission to read and write data. 2. create a directory share in linux and create it in/data. The full directory is/data/share 3. Mount share 1 in windows and share a folder in windows.
(1) create a user: devin, password: admin123 (2) create a folder on the E drive, share, set share to share with the user devin, and set the permission: read and write. 2. create a directory share in linux and the full directory/data/share under/data. 3. mount the share directory in windows to achieve the current mount. mount mounting only takes effect for the moment, it will become invalid after restart; [Java]View plaincopy
  1. Mount-t cifs-o username = devin, password = admin123 // 192.168.0.124/share/data/share

4. add the following code to the/etc/fstab file to automatically mount the device upon startup. [Java]View plaincopy
  1. // 192.168.0.124/share/data/share/cifs username = devin, password = admin123, rw 0 0

So OK

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.