1998-10-02 16:37:31 +04:00
This is a prelodable shared library that provides SMB client services
for existing executables. Using this you can simulate a smb
filesystem.
1998-10-06 14:24:22 +04:00
*** This is code under development. Some things don't work yet ***
1998-10-07 14:35:18 +04:00
Currently this code has been tested on:
1998-10-05 07:56:09 +04:00
- Linux 2.0 with glibc2 (RH5.1)
- Linux 2.1 with glibc2
- Solaris 2.5.1 with gcc
- Solaris 2.6 with gcc
1998-10-05 17:51:19 +04:00
- SunOS 4.1.3 with gcc
- IRIX 6.4 with cc
1998-10-07 14:35:18 +04:00
- OSF1 with gcc
1998-10-05 07:56:09 +04:00
1998-10-07 14:35:18 +04:00
It probably won't run on other systems without some porting. If you
have a different system then see the file PORTING.
1998-10-02 16:37:31 +04:00
To use it you need to do this:
1998-10-05 07:56:09 +04:00
1) build smbwrapper.so using the command "make smbwrapper"
1998-10-03 16:47:52 +04:00
3) run smbsh
1998-10-02 16:37:31 +04:00
1998-10-05 17:51:19 +04:00
You will be asked for a username and password. After that you will be
returned to a shell prompt. It is actually a subshell running with
1998-10-19 06:49:48 +04:00
smbwrapper enabled.
1998-10-05 17:51:19 +04:00
Now try to access /smb/SERVER for some SMB server name and see what
1998-10-19 06:49:48 +04:00
happens. If you use the -W option to set your workgroup or have
workgroup set in your smb.conf then listing /smb/ should list all SMB
servers in your workgroup.
1998-10-02 16:37:31 +04:00
1998-10-06 15:14:52 +04:00
1998-10-19 06:49:48 +04:00
OPTIONS
-------
1998-10-06 14:24:22 +04:00
1998-10-19 06:49:48 +04:00
-U username
specify the username and optional password (as user%password)
1998-10-06 14:24:22 +04:00
1998-10-19 06:49:48 +04:00
-d debug level
1998-10-06 14:24:22 +04:00
This is an integer that controls the internal debug level of smbw. It
defaults to 0, which means no debug info.
1998-10-19 06:49:48 +04:00
-l logfile
1998-10-06 14:24:22 +04:00
The place where smbw debug logs are put. If this is not set then
stderr is used.
1998-10-19 06:49:48 +04:00
-P prefix
1998-10-06 14:24:22 +04:00
The root of the SMB filesystem. This defaults to /smb/ but you can
set it to any name you like.
1998-10-19 06:49:48 +04:00
-W workgroup
1998-10-06 14:24:22 +04:00
This is the workgroup used for browsing (ie. listing machines in the
/smb/ directory). It defaults to the one set in smb.conf.
1998-10-02 16:37:31 +04:00
1998-10-19 06:49:48 +04:00
-R resolve order
This allows you to override the setting of the name resolve order
from smb.conf
1998-10-03 16:47:52 +04:00
1998-10-06 15:14:52 +04:00
ATTRIBUTE MAPPING
-----------------
smbwrapper does an inverse attribute maping to what Samba does. This
means that the archive bit appears as the user execute bit, the system
bit appears as the group execute bit and the hidden bit appears as the
other execute bit. You can control these with chmod. The mapping can
be enabled an disabled using the normal smb.conf controls (ie. "map
archive", "map system" and "map hidden").
Read-only files appear as non-writeable by everyone. Writeable files
appear as writeable by the current user.
WHAT WORKS
----------
1998-10-03 16:47:52 +04:00
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,
1998-10-03 19:28:47 +04:00
tail, bash, tcsh, mkdir, rmdir, vim, xedit, diff
1998-10-03 16:47:52 +04:00
things that I know don't work:
anything executing from the share
anything that uses mmap
1998-10-05 07:56:09 +04:00
redirection within shells to smbsh files
1998-10-03 16:47:52 +04:00
1998-10-02 16:37:31 +04:00
If you want to help with the development of this code then join the
samba-technical mailing list.
1998-10-19 06:49:48 +04:00