linux:centos7
windows:windows server 2008 ip:192.168.200.3
[[email protected] ~]$ sudo mkdir /mnt/200_3
[[email protected] ~]$ sudo smbclient -L //192.168.200.3 -U administrator
Enter administrator‘s password:
Domain=[WHYB] OS=[Windows Server 2008 R2 Enterprise 7601 Service Pack 1] Server=[Windows Server 2008 R2 Enterprise 6.1]
Sharename Type Comment
--------- ---- -------
FTP Disk
IPC$ IPC 远程 IPC
Connection to 192.168.200.3 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
[[email protected] ~]$ sudo mount -t cifs -o username=administrator,password=bdadmin //192.168.200.3/ftp /mnt/200_3
[[email protected] ~]$ ls /mnt/200_3
ISO Software Thumbs.db 值班表 公司通讯录
[[email protected] ~]$ sodu vi /etc/fstab
add:
//192.168.200.3/ftp /mnt/200_3 cifs defaults,username=administrator,password=bdadmin 0 0
//192.168.200.5/vbexe /mnt/200_5_exe cifs defaults,username=administrator,passworkd=bdadmin 0 0
//192.168.200.5/新建文件夹 /mnt/200_5_newfold cifs defaults,username=administrator,password=bdadmin 0 0