Linux access to Windows shared folders

Source: Internet
Author: User

One, in Windows to build a shared folder, confirm that the normal access.

Second, installation samba-client

1. Rpm-qa with Command | grep samba-client or Yum list samba-client

or Yum Info samba-client query Whether the Samba-client package is installed.

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/17/92c0947d183b25dc36b5af9ae9fc666f.jpg-wh_500x0-wm_3 -wmp_4-s_3018834843.jpg "title=" 1.jpg "alt=" 92c0947d183b25dc36b5af9ae9fc666f.jpg-wh_ "/>

2, if not installed can be installed with the Yum install-y samba-client command.

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/17/8dc4ad861d109c47c2a2f7b83484f0b6.jpg-wh_500x0-wm_3 -wmp_4-s_1129897948.jpg "title=" 2.jpg "alt=" 8dc4ad861d109c47c2a2f7b83484f0b6.jpg-wh_ "/>

Third, access the shared folder of Windows.

1. Build a mount point on Linux first. (-p parameter indicates that an error is not returned if the directory exists, or a new one if it does not exist)

Mkdir-p/mnt/windowsshare

2. Mount the shared folder of Windows to the/mnt/windowsshare directory

Mount-t cifs-o user= username, password= password//IP address/shared directory/mnt/windowsshare

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/17/079b67f485c3f75114e350228c7e8d37.jpg-wh_500x0-wm_3 -wmp_4-s_4015459113.jpg "title=" 3.jpg "alt=" 079b67f485c3f75114e350228c7e8d37.jpg-wh_ "/>

Iv. Uninstall the directory.

Umount/mnt/windowsshare

This article is from the "Deep Blue Technology" blog, please be sure to keep this source http://babymylove.blog.51cto.com/770678/1982844

Linux access to Windows shared folders

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.