Machine environment:
Machine 1: The Windows IP address is 192.168.1.19 and the machine name is l09.
There is a super administrator bnnb on it. This user exists. The system is Windows 2003, and the shared folder is winsoft.
Machine 2: slackware
Let's take a look at what Windows machines share?
Quote:
Bash-3.00 # smbclient-ubnnb-l 192.168.1.19
Password: enter the password of your Windows Account bnnb.
Domain = [l09] OS = [Windows Server 2003 3790] Server = [Windows Server 2003 5.2]
Sharename type comment
--------------------
E $ disk-winsoft Disk
IPC $ IPC d $ disk-F $ disk-ADMIN $ disk C $ disk-Session Request to 192.168.1.19 failed (called name not present)
Session Request to 192 failed (called name not present)
Domain = [l09] OS = [Windows Server 2003 3790] Server = [Windows Server 2003 5.2]
Server comment
----------------
Workgroup master
----------------
Bash-3.00 #
We know from the above that winsoft is indeed shared on the l09 machine. How can we mount it to the local machine ..
Use the following method
Quote:
Bash-3.00 # Mount-T smbfs-O username = bnnb // l09/winsoft/mnt/MACOs/
Password: enter the password here
Check whether mount is in ??
Quote:
Bash-3.00 # ls/mnt/MACOs/
Work log company backup company file software 5 duty schedule .doc promotional materials duty schedule (October-December 2017.xls
Bash-3.00 #
Passwd can also be passed directly as a parameter.
Mount-T smbfs-O username = bnnb, passwd = XXXX // l09/winsoft/mnt/MACOs/
The name resolution mechanism in Windows is very bad. Sometimes the NetBIOS name cannot be resolved to an IP address normally. In Windows, some machines can see it, but some machines cannot see it. Therefore, you can directly use the IP address as a parameter.
Mount-T smbfs-O username = bnnb, passwd = XXXX, IP = XXX. XXX // l09/winsoft/mnt/MACOs/
If your system is a unicode System of Win2k/XP, you must use CIFS to solve the problem. Otherwise, when cp936 is added, all CJK texts except the GB quota will be reserved. Please refer to this command:
Mount-t cifs // 192.168.1.1/winsoft/mnt/MACOs/-O username = bnnb, iocharset = utf8