Configuration Connection from Linux to Windows for SES

趙宇發表於2009-05-21

  If you would want to build a source in SES (security enterprise search),you must sure that serce hold ses can access aim servce with this URL.So if you want to acess or crawler files of windows searver,we need to mount sharing directory of windows to Linux Server.

   The Following Step is :

  
$ smbclient -L ip_address
Password:
Anonymous login successful
Domain=[CN-ORACLE] S=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to ip_adress failed (Called name not present)
session request to 10 failed (Called name not present)
Anonymous login successful
Domain=[CN-ORACLE] S=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------
        ORDKM-CN             name - China

        Workgroup            Master
        ---------            -------
        CN                     ORDKM-CN


psedb->smbclient '\\ip_address\gc-ordsc-tech-km' -U ordsc
Password:
Domain=[ordkm-cn] S=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> help
?              altname        archive        blocksize      cancel        
case_sensitive cd             chmod          chown          del           
dir            du             exit           get            hardlink      
help           history        lcd            link           lowercase     
ls             mask           md             mget           mkdir         
more           mput           newer          open           print         
printmode      prompt         put            pwd            q             
queue          quit           rd             recurse        reget         
rename         reput          rm             rmdir          setmode       
stat           symlink        tar            tarmode        translate     
vuid           logon          !             
smb: \> dir
  .                                   D        0  Tue May 12 11:44:41 2009
  ..                                  D        0  Tue May 12 11:44:41 2009
  Case Study                          D        0  Wed Mar  4 15:53:09 2009
  KM Management Directory             D        0  Wed May 20 16:04:07 2009
  Knowledge Sharing & Events          D        0  Tue Apr 28 13:58:18 2009
  Products                            D        0  Wed Mar  4 11:08:28 2009
  Soft Skills                         D        0  Wed Mar  4 11:06:27 2009

                55454 blocks of size 2097152. 20940 blocks available
smb: \>


[root@psedb ~]# smbmount //ip_address/gc-ordsc-tech-km /u01/ses_windows  -o username=ordsc
Password:
[root@psedb ~]# df -k
Filesystem             1K-block        used     free   used% mount
/dev/sda2             16816704   3725784  12236664  24% /
/dev/sda1               139985     14125    118633  11% /boot
none                   1032312         0   1032312   0% /dev/shm
/dev/sda5             55455580   5197592  47440992  10% /u01
//ip_adress/gc-ordsc-tech-km
                     113569792  70684672  42885120  63% /u01/ses_windows


[root@psedb ses_windows]# ls
Case Study  KM Management Directory  Knowledge Sharing & Events  Products  Soft Skills
[root@psedb ses_windows]# ls -l
+Ü++++ 20
drwxr-xr-x  1 root root 4096  3++  4 15:53 Case Study
drwxr-xr-x  1 root root 4096  5++ 20 16:04 KM Management Directory
drwxr-xr-x  1 root root 4096  4++ 28 13:58 Knowledge Sharing & Events
drwxr-xr-x  1 root root 4096  3++  4 11:08 Products
drwxr-xr-x  1 root root 4096  3++  4 11:06 Soft Skills


 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/175005/viewspace-600697/,如需轉載,請註明出處,否則將追究法律責任。

相關文章