To mount a Windows shared folder under centos6.5

Source: Internet
Author: User

1. Under Windows, create a folder F:\linux, share to win under the user username, the user password is passwd. The Windows system IP is 192.168.18.203 in the LAN

2. Run Mount//192.168.18.203/linux/mnt/win-o username=username,password=passwd,dmask=777 on the centos6.5 command line (root), fmask=777.

You can then see the contents of the shared folder F:\linux that belong to Windows in the CentOS/mnt/win directory.

Dmask=777 means that the folder owner can read and write, and the same fmask represents the permissions of the file 777. Can be set according to their own circumstances.

3. If you want the Windows folder to start mounting with CentOS, you can use the following command:

echo Mount//192.168.18.203/linux/mnt/win-o username=username,password=passwd,dmask=777,fmask=777 >>/etc/ Fstab

If not, you can use

echo Mount//192.168.18.203/linux/mnt/win-o username=username,password=passwd,dmask=777,fmask=777 >>/etc/ Rc.local

Reference:

http://zhangjunli177.blog.163.com/blog/static/13860730820130220264506/

Http://ry.tl/mount.html

To mount a Windows shared folder under centos6.5

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.