安裝完samba如何從linux訪問WINDOWS共享文件夾
發(fā)布日期:2022-07-22 13:54 | 文章來源:源碼之家
安裝完samba如何從linux訪問WINDOWS共享文件夾?很多像我一樣的新手剛裝完samba后,確不知道如何從linux系統(tǒng)訪問windows系統(tǒng)的共享文件夾.其實要從linux訪問windows共享文件夾的方法有很多種,下面舉出常用方便的幾種,供參考:
[root@localhost root]# smbclient -L //192.168.1.8 此命令可以查看windows下的共享目錄.注:l為大寫的L
連接成功后會提示如下信息(只是參考):
[root@localhost root]# smbclient -L //192.168.1.8
added interface ip=192.168.1.85 bcast=192.168.1.255 nmask=255.255.255.0
session request to 192.168.1.8 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]
Sharename Type Comment
--------- ---- -------
C$ Disk 默認(rèn)共享
su Disk
s2003 Disk
IPC$ IPC 遠(yuǎn)程 IPC
收藏夾 Disk
tools Disk
ADMIN$ Disk 遠(yuǎn)程管理
linuxsoft Disk
D$ Disk 默認(rèn)共享
E$ Disk 默認(rèn)共享
222 Disk
Server Comment
--------- -------
DELL-2O5NEINMWR
U
ZONEIDC-9
ZONEIDC-A
ZONEIDC4545 zoneidc
ZONEIDCNANA ZoneidcNaNa
Workgroup Master
--------- -------
WORKGROUP U
如果出現(xiàn)錯誤信息;session setup failed: NT_STATUS_LOGON_FAILURE
請訪問:http://www.ititgo.cn/html/2007/7/953.htm
如果你想訪問哪個共享文件夾,請使用下面命令:
[root@localhost /]# mount -t smbfs -o username=administrator,passwd='dell' //192
.168.1.8/linuxsoft /mnt/samba
注:密碼要加上' ' /mnt/samba為linux上要掛載的地方,如果沒有可以自己新建一個目錄.linuxsoft為windows下的共享目錄.成功后會提示如下相關(guān)信息:
1721: session request to 192.168.1.8 failed (Called name not present)
1721: session request to 192 failed (Called name not present)
[root@localhost root]# smbclient -L //192.168.1.8 此命令可以查看windows下的共享目錄.注:l為大寫的L
連接成功后會提示如下信息(只是參考):
[root@localhost root]# smbclient -L //192.168.1.8
added interface ip=192.168.1.85 bcast=192.168.1.255 nmask=255.255.255.0
session request to 192.168.1.8 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]
Sharename Type Comment
--------- ---- -------
C$ Disk 默認(rèn)共享
su Disk
s2003 Disk
IPC$ IPC 遠(yuǎn)程 IPC
收藏夾 Disk
tools Disk
ADMIN$ Disk 遠(yuǎn)程管理
linuxsoft Disk
D$ Disk 默認(rèn)共享
E$ Disk 默認(rèn)共享
222 Disk
Server Comment
--------- -------
DELL-2O5NEINMWR
U
ZONEIDC-9
ZONEIDC-A
ZONEIDC4545 zoneidc
ZONEIDCNANA ZoneidcNaNa
Workgroup Master
--------- -------
WORKGROUP U
如果出現(xiàn)錯誤信息;session setup failed: NT_STATUS_LOGON_FAILURE
請訪問:http://www.ititgo.cn/html/2007/7/953.htm
如果你想訪問哪個共享文件夾,請使用下面命令:
[root@localhost /]# mount -t smbfs -o username=administrator,passwd='dell' //192
.168.1.8/linuxsoft /mnt/samba
注:密碼要加上' ' /mnt/samba為linux上要掛載的地方,如果沒有可以自己新建一個目錄.linuxsoft為windows下的共享目錄.成功后會提示如下相關(guān)信息:
1721: session request to 192.168.1.8 failed (Called name not present)
1721: session request to 192 failed (Called name not present)
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
相關(guān)文章
關(guān)注官方微信