Use Samba Client on CentOS 6 to Access windows Shared Folders

Source: Internet
Author: User

Access windows Shared Folder su with Samba Client on CentOS 6 (get root permission) yum install samba (in fact, we only use winbind in samba so that we can find the network address of the machine using the name of the windows machine. This will be used in the following process. In addition, make sure that there are two network protocols for installing the microsoft network client, microsoft network file, and printer in the NIC protocol on the windows machine.) vi/etc/nsswitch. conf: change hosts: files dns to hosts: files dns wins (this step is also about enabling us to find the network address of this machine through the name of the windows machine) yum install samba-client install samba client (which will be used to access windows machines) yum install cifs-utils install cifs Toolkit (used to replace obsolete smbfs) vi/etc /. smbpasswd (add the user name and password used to store the user name and password used to access the windows machine) 1 username = username2password = passwordmkdir/mnt/mount point name (create a mount point) vi/etc/fstab Add the following content to enable the operating system to automatically mount the shared folder on the windows machine to mount point 1 // your windows machine name/Shared Folder name/mnt/you the created mount point cifs rw, credentials =/etc /. smbpasswd 0 0 mount-a (let the system remount all mount points defined in the/etc/fstab file) cd/mnt/mount point name (enter the shared folder on the windows machine)

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.