smbtree and smbclient


Forum: DSL Embedded
Topic: smbtree and smbclient
started by: Missouri Bushwacker

Posted by Missouri Bushwacker on April 11 2006,20:59
Can someone tell me if smbtree and smbclient will function in
the embedded DSL environment?  If they can, will someone
write up a short "how to" on using these?  I know a little about
using FTP.  Trying to run these, they ask for a password.  What password do they want?  A password I create on the DSL
"guest" side, or one on the Windows XP "host" side?
   
(BTW, I currently have DSL 2.3 Embedded running as guest on a Windows XP host and I am using DILLO to browse this
site and enter these texts.  Works great.)

Posted by desnotes on April 11 2006,21:56
I would recommend using LinNeighborhood (Samba.dsl) when using the embedded configuration. Once it is setup you can tansfer files between DSL embeeded and the host easily.

desNotes

Posted by clacker on April 11 2006,23:12
Missouri Bushwacker, the password and username are from the Windows side.  What it wants depends on how you have your windows machine setup, but here's what I did on my XP system to transfer files:

open My Documents and create a new folder called WatershipDown

right click on the new directory, choose "Sharing and security," and choose "share this folder on the network."  I named the share Watership in the "Share Name."  I'd say avoid spaces and long names.  If you want to be able to move files from dsl to windows uncheck the "read only" box.

Still in Windows, from the "Run" menu, run CMD and then type ipconfig to find your computer's address.

Then from your embeded dsl open an xterminal.  Type:

smbclient "//69.162.84.201/Watership" -U Hyzenthlay

Now, Hyzenthlay is a great name, and it works for me, but if you have other permissions on your windows system, you might need to create a user named this.  Or use your own name.  On some machines username and password didn't matter.  On some machines they do.  If in doubt try a random name and password and if that doesn't work, then use your Windows login name and password.  You'll want to use the IP address you got from ipconfig instead of the one above as well.  If you need to connect through a particular workgroup, put that after an additional -W switch.

When I do the above there is a long pause after the "creating lame lowcase table" line, almost like everything is frozen.  I get these error messages and then the prompt for a password:

Code Sample
creating lame upcase table
creating lame lowcase table
timeout connecting to 69.162.84.201:445
session request to 69.162.84.201 failed (Called name not present)
timeout connecting to 69.162.84.201:445
session request to 69 failed (Called name not present)
timeout connecting to 69.162.84.201:445
Password:


I entered the password and I was treated to the following prompt:

smb: \>

You can use get to get a file from the windows machine, and put to put a file into that directory.  ls and cd work just like in linux.  help prints out a collection of possible commands.

Code Sample
smb: \> help
?              altname        archive        blocksize      cancel        
cd             chmod          chown          del            dir            
du             exit           get            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        symlink        tar            
tarmode        translate      !              
smb: \>

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.