CentOS Mount Windows shared directory

Source: Internet
Author: User

  1. SU (get root permission)
  2. Yum installs Samba (in fact we only use the Winbind in samba so that we can find the network address of the machine using the name of the Windows machine, as described in the following procedure.) Also, be sure to install the Microsoft Network client and Microsoft Network file and printer share two network protocols inside the protocol of the NIC on the Windows machine
  3. vi/etc/nsswitch.conf find hosts:files DNS changed to Hosts:files DNS wins (This step is also about allowing us to find the network address of the machine through the name of the Windows machine)
  4. Yum Install samba-client installs the Samba client (it will be used to access the Windows machine)
  5. Yum Install cifs-utils installs the CIFS Toolkit (to replace obsolete SMBFS)
  6. VI/ETC/.SMBPASSWD (Add content to hold the user name and password to access the Windows machine)username = usernamepassword = password
  7. mkdir/mnt/mount point Name (Create a mount point)
  8. Vi/etc/fstab Add the following to let the operating system start automatically mount the shared folder on the Windows machine to the mount point//你的windows机器名/共享文件夹名 /mnt/你创建的挂载点 cifs rw,credentials=/etc/.smbpasswd 0 0
  9. MOUNT-A (Let the system re-mount all the mount points defined in the/etc/fstab file)
  10. cd/mnt/mount point Name to

Reference:

Http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html

Http://serverfault.com/questions/352305/why-can-windows-machines-resolve-local-names-when-linux-cant

http://www.linuxquestions.org/questions/red-hat-31/mount-cifs-not-present-on-centos-6-2-%5Bsolved%5D-931736/

http://www.kernelhardware.org/access-windows-shares-in-linux/

CentOS Mount Windows shared directory

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.