summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/smbwrapper/README
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-03-29 00:42:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:22 -0500
commitfbc611f431db443c23486f768ca5e2bc4db95c24 (patch)
treeeda7acba80812fe7fce924e9bbdbfa9dc971942d /examples/libsmbclient/smbwrapper/README
parentfa787af52093e14de4a472d2ccb50b9ec66b10d1 (diff)
downloadsamba-fbc611f431db443c23486f768ca5e2bc4db95c24.tar.gz
samba-fbc611f431db443c23486f768ca5e2bc4db95c24.tar.bz2
samba-fbc611f431db443c23486f768ca5e2bc4db95c24.zip
r6108: Added smbsh/smbwrapper for Linux to example/libsmbclient tree; provided more complete libsmbclient testbrowse utility
(This used to be commit 15736b97c837a16d9c009b8bff18b31429ccbe83)
Diffstat (limited to 'examples/libsmbclient/smbwrapper/README')
-rw-r--r--examples/libsmbclient/smbwrapper/README40
1 files changed, 40 insertions, 0 deletions
diff --git a/examples/libsmbclient/smbwrapper/README b/examples/libsmbclient/smbwrapper/README
new file mode 100644
index 0000000000..7b71ec06ba
--- /dev/null
+++ b/examples/libsmbclient/smbwrapper/README
@@ -0,0 +1,40 @@
+To create "smbsh" on Linux, just type "make".
+
+If you execute "smbsh" in *this* directory (so that it can find the required
+shared library), you'll find yourself in a new shell. You can then issue
+commands referencing the "/smb" pseudo-filesystem:
+
+ ls /smb
+ ls /smb/WORKGROUP_OR_DOMAIN
+ ls /smb/SERVER
+ ls /smb/SERVER/SHARE
+ ls /smb/SERVER/SHARE/PATH
+
+Note that WORKGROUP_OR_DOMAIN is *not* used other than at that level. This is
+consistent with the smb:// URI definition.
+
+Usage:
+ smbsh [-L <path to find smbwrapper.so>]
+ [-p <library to load before smbwrapper.so>]
+ [-a <library to load after smbwrapper.so>]
+ [-d <debug value for libsmbclient>]
+ [-n] (do not ask for username/password)
+ [-W <workgroup>]
+ [-U <username%password]
+ [command]
+
+So to list the contents of \\MYDESK\C$ where a username (adventure) and password
+(xyzzy) are required, and with smbwrapper.so installed in /usr/share/samba, you
+could try:
+
+ smbsh -L /usr/share/samba -U adventure%xyzzy ls '/smb/MYDESK/C$'
+
+(It's a good idea to get in the habit of surrounding windows paths in single
+quotes, since they often contain spaces and other characters that'll give you
+headaches when not escaped.)
+
+This smbsh seems to work quite well on Linux 2.4 and 2.6. The biggest problem it
+has is in tracking your current working directory. I haven't had the time to
+track that down and fix it.
+
+Derrell Lipman