RHCE7认证学习笔记28——使用Samba访问网络存储
SMB用于Windows和类Linux系统直接的文件共享
安装samba client包:
[root@it.net.cn~]# yum install samba-client\* -y
使用smbclinet命令查看和访问windows共享的文件夹资源:
12345678910111213 [root@it.net.cn~]# 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@it.net.cn~]# 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@it.net.cn~]# yum install cifs\* -y
挂载文件:
[root@it.net.cn~]# mount -o username=administrator,password=123456 //192.168.10.100/Dell /aa
(责任编辑:IT) |