Two ways to access Windows shared folders in CentOS

Write before the text: window7, centOS 7 install the following first method prompts NT_STATUS_ACCESS_DENIED, directly use the second method, you can mount shared files.


1 Enter the following in the address bar:



smb://Windows IP/Share folder name, smb is the abbreviation of Server Message Block protocol, which is an IBM protocol that runs on top of TCP/IP protocol.

Since Windows 95, Microsoft Windows has provided SMB protocol support for Server and Client. Microsoft has provided an open source version of SMB for the Internet, as well as CIFS (Common Internet File System), a common file system.



2 Mount the shared folder of Windows to the



local Enter the command mount -t cifs -o username="Admin",password="" //192.168.1.1/ShareFolder /mnt/MyShare

Note the spaces and Commas, empty passwords are also OK.

This command is to mount the shared folder ShareFolder on 192.168.1.1 to the local /mnt/MyShare folder. After execution, you can see the contents of the ShareFolder in MyShare.



Command to delete mount: umount /mnt/MyShare

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326520944&siteId=291194637