Linux系統下訪問遠程共享資源
使用mount加載共享目錄:
-把WinXP機器192.168.16.249上的共享目錄test001映射到本地目錄/wdl/下。
-把Linux機器192.168.16.248上的共享目錄inPath映射到本地目錄/opt/。
在終端命令行下輸入如下命令:
-#mount -o username="user001",password="antiy?100" //192.168.16.249/test001/ /wdl/
-#mount -o username="user002",password="antiy?200" //192.168.16.248/inPath/ /opt/
其中,username為共享賬號,password為賬號密碼。
使用mount查看掛載信息。
[root@bogon /]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
//192.168.16.249/test001/ on /wdl type cifs (rw,mand)
//192.168.16.248/inPath/ on /opt type cifs (rw,mand)
使用umount /wdl/,可以取消掛載/wdl。
