linux访问 window的共享文件夹
Posted 路漫漫,其修远,上下而求索
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux访问 window的共享文件夹相关的知识,希望对你有一定的参考价值。
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
以上是关于linux访问 window的共享文件夹的主要内容,如果未能解决你的问题,请参考以下文章