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)