If you have a /etc/hosts file set up with nicknames defined, you can access it via the 
nickname and not have to know the IP address.  For example, if your /etc/hosts file 
contains an entry

192.67.218.21   lx-inca.test.boeing.com      lxinca

then you can do the mount of a share called "patches"  by specifying

mount -t smbfs //lxinca/patches /mnt/patches -o
username=aaaaa,password=bbbbb

They say there are three signs of stress in your life.  You eat too much junk food, 
you drive too fast and you veg out in front of the TV.  Who are they kidding?  That 
sounds like a perfect day to me!
Gordon Wolfe, Ph.D. (425)865-5940
VM & Linux Servers and Storage, The Boeing Company

> ----------
> From:         Carlos Ordonez
> Reply To:     Linux on 390 Port
> Sent:         Friday, February 28, 2003 10:00 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Accessing an SMB share from another linux box
> 
> For some reason or another it works for me only when I put the options at
> the end of the command:
> 
> mount -t smbfs //9.117.44.44/zntc /mnt/linux390 -o
> username=administrator,password=asdcs
> 
> 
> Saying goes: Great minds think alike - I say: Great minds think for
> themselves!
> 
> Carlos A. Ordonez
> IBM Corporation
> Server Consolidation
> 
> 
> 
> |---------+----------------------------->
> |         |           James Melin       |
> |         |           <[EMAIL PROTECTED]|
> |         |           epin.mn.us>       |
> |         |           Sent by: Linux on |
> |         |           390 Port          |
> |         |           <[EMAIL PROTECTED]|
> |         |           ST.EDU>           |
> |         |                             |
> |         |                             |
> |         |           02/28/2003 12:01  |
> |         |           PM                |
> |         |           Please respond to |
> |         |           Linux on 390 Port |
> |         |                             |
> |---------+----------------------------->
>   
> >----------------------------------------------------------------------------------------------------------------------------|
>   |                                                                                  
>                                           |
>   |       To:       [EMAIL PROTECTED]                                                
>                                     |
>   |       cc:                                                                        
>                                           |
>   |       Subject:  Accessing an SMB share from another linux box                    
>                                           |
>   |                                                                                  
>                                           |
>   
> >----------------------------------------------------------------------------------------------------------------------------|
> 
> 
> 
> 
> I have a directory on my SLES/390 distribution shared so that windoze can
> access it.  Typically, I use this to copy CD contents to that directory for
> installation.
> 
> DB2 Connect Enterprise Edition 8.1 has RPM packages that are named
> identically except for one has an uppercase character in it - fine in
> unix/linux, bad in windows. It tries to do a file replace instead of a
> copyt.
> 
> how do I access an SMB shared directory from another linux? I have tried
> mount -t smbfs {variants of various commands} to no avail
> 
> If someone could show me an example of how to make this work, I'd be
> ecstatic.
> 
> 

Reply via email to