SMB用于Windows和类Linux系统直接的文件共享
安装samba client包:
[root@clz ~]# yum install samba-client\* -y
使用smbclinet命令查看和访问windows共享的文件夹资源:
[root@clz ~]# 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@clz ~]# 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@clz ~]# yum install cifs\* -y
挂载文件:
[root@clz ~]# mount -o username=administrator,password=123456 //192.168.10.100/Dell /aa
本文出自 “平凡之路” 博客,请务必保留此出处http://linjohn.blog.51cto.com/1026193/1610635
原文地址:http://linjohn.blog.51cto.com/1026193/1610635