has been in the Linux world for some time, it feels as if your computer has become an island. The people around are still using Windows system, can share files with each other, I use the Linux system, other people's shared files do not know how to access? Through the online search of information learning, now know. Write your notes and use CentOS to access Windows shared files on your local area network.
Many of the online use the following methods:
# mount-t Smbfs-o username= "Administrator" , password= ""//192.168.1.100/cp/mnt/ntfs
However, when the above method executes, the following information appears (possibly a different version of Linux):
Mount:unknown filesystem type ' SMBFS '
This does not seem to work, after checking the information, said SMBFS to CIFS, so use the following method:
# mount-t Cifs-o username= "Administrator", password= ""//192.168.1.101/cp/mnt/ntfs
Description
Mount-t Cifs-o This is not much to say (according to write it).
Username= the user name required for "Administrator" access.
Password= "" Access the required password (blank password).
192.168.1.101/CP the IP address of the shared machine, and the following CP is the share name (not the CP command).
/mnt/ntfs mounted directory (shared directory is mounted here).
Or look at the picture, I did a demo, not much to say,
Note:
share a directory in Windows with two permissions (read-only and read-write), and the Windows share permissions I demonstrated are read-write. If someone else shared permission is read-only, then it is not possible to copy their own machine files to the other shared directory, it will prompt "insufficient permissions."