summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-03 12:47:52 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-03 12:47:52 +0000
commit13b431ff2df41f3ba5592be2ccf4789238f34750 (patch)
treecc883accc74744b2bed2bf731e33a6c9bcfa639d /source3
parentf651787785c0a8f2884e254723eeb26512a76e2a (diff)
downloadsamba-13b431ff2df41f3ba5592be2ccf4789238f34750.tar.gz
samba-13b431ff2df41f3ba5592be2ccf4789238f34750.tar.bz2
samba-13b431ff2df41f3ba5592be2ccf4789238f34750.zip
added a bit more to the docs
(This used to be commit e040047c647df3991becbf2b45de785fc875d1ff)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbwrapper/README33
-rwxr-xr-xsource3/smbwrapper/smbsh4
-rw-r--r--source3/smbwrapper/smbw.h2
3 files changed, 25 insertions, 14 deletions
diff --git a/source3/smbwrapper/README b/source3/smbwrapper/README
index be345b5566..6a72a2e23c 100644
--- a/source3/smbwrapper/README
+++ b/source3/smbwrapper/README
@@ -2,25 +2,34 @@ This is a prelodable shared library that provides SMB client services
for existing executables. Using this you can simulate a smb
filesystem.
-Currently this code only works on Linux with glibc2. Eventually I hope
-to make it portable to lots of OSes but at the moment if you don't
-have Linux then don't even try to use it.
+Currently this code only works on Linux with glibc2 (tested on
+RH5.1). Eventually I hope to make it portable to lots of OSes but at
+the moment if you don't have Linux then don't even try to use it.
To use it you need to do this:
-export SMBW_USER=username
-export SMBW_PASSWORD=username
-export LD_PRELOAD=full_path_to_smbwrapper.so
+1) build smbwrapper.so using the command "make smbwrapper/smbwrapper.so"
+2) edit smbsh and set the LIBDIR line to point to the smbwrapper directory
+3) run smbsh
-then try to access /smb/SERVER/SHARE/ and see what happens.
+then try to access /smb/SERVER for some SMB server name and see what
+happens.
For debugging you can set SMBW_DEBUG to an integer debug level.
-This is code under development. Lots of things don't work yet. Quite a
-few things do though, for example I've successfully run tar, less, ls,
-bash, cmp, cat, du and a bunch of other utilities on files accessed
-via this library.
+This is code under development. Lots of things don't work yet.
+
+Things that I have tried and do seem to work include:
+
+ emacs, tar, ls, cmp, cp, rsync, du, cat, rm, mv, less, more, wc, head,
+ tail, bash, tcsh
+
+things that I know don't work:
+
+ vi (I don't know why this is)
+ anything executing from the share
+ anything that uses mmap
+
If you want to help with the development of this code then join the
samba-technical mailing list.
-
diff --git a/source3/smbwrapper/smbsh b/source3/smbwrapper/smbsh
index 1abe568663..c03e4f2baf 100755
--- a/source3/smbwrapper/smbsh
+++ b/source3/smbwrapper/smbsh
@@ -1,5 +1,7 @@
#!/bin/sh
+LIBDIR=/samba/cvs/source/smbwrapper
+
# a simple launcher for the smbwrapper.so preloadde library
if [ x$SMBW_USER = x ]; then
@@ -15,7 +17,7 @@ if [ x$SMBW_PASSWORD = x ]; then
export SMBW_PASSWORD=$pass
fi
-export LD_PRELOAD=$PWD/smbwrapper/smbwrapper.so
+export LD_PRELOAD=$LIBDIR/smbwrapper.so
export PWD
export PS1='smbsh$ '
diff --git a/source3/smbwrapper/smbw.h b/source3/smbwrapper/smbw.h
index 71dce3b321..be0f472e0c 100644
--- a/source3/smbwrapper/smbw.h
+++ b/source3/smbwrapper/smbw.h
@@ -21,7 +21,7 @@
#define SMBW_PREFIX "/smb/"
-#define SMBW_FD_OFFSET 1024
+#define SMBW_FD_OFFSET 700
#define SMBW_CLI_FD 512
#define SMBW_MAX_OPEN 2048