SMB用于Windows和类Linux系统直接的文件共享
安装samba client包:
[root@linuxidc~]# yum install samba-client\* -y
使用smbclinet命令查看和访问windows共享的文件夹资源:
12345678910111213 [root@linuxidc~]# smbclient -L //10.35.89.71/ -U administrator
Enter administrator's password:
Domain=[AP] OS=[Windows 7 Enterprise 7601 Service Pack 1] Server=[Windows 7 Enterprise 6.1]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
Dell Disk
E$ Disk Default share
F$ Disk Default share
IPC$ IPC Remote IPC
Connection to 10.35.89.71 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
访问共享文件夹资源:
[root@linuxidc~]# smbclient //10.35.89.71/Dell -U administrator
Enter administrator's password:
Domain=[AP] OS=[Windows 7 Enterprise 7601 Service Pack 1] Server=[Windows 7 Enterprise 6.1]
smb: \>
挂载共享文件资源:
先安装cifs-utility包:
[root@linuxidc~]# yum install cifs\* -y
挂载文件:
[root@linuxidc~]# mount -o username=administrator,password=123456 //192.168.10.100/Dell /aa