• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..22-Apr-201625

bsd-strlcat.cH A D13-Aug-20132.4 KiB

bsd-strlcpy.cH A D13-Aug-20132.3 KiB

bsd-strlfunc.hH A D13-Aug-2013189

MakefileH A D13-Aug-2013963

opendir_smbsh.cH A D13-Aug-20131.1 KiB

READMEH A D13-Aug-20131.4 KiB

select.cH A D13-Aug-20133.8 KiB

smbsh.1.htmlH A D13-Aug-20139.3 KiB

smbsh.1.xmlH A D13-Aug-20135.5 KiB

smbsh.cH A D13-Aug-20134.6 KiB

smbw.cH A D13-Aug-201322.5 KiB

smbw.hH A D13-Aug-20135.4 KiB

smbw_dir.cH A D13-Aug-20139.7 KiB

smbw_stat.cH A D13-Aug-20133.1 KiB

wrapper.cH A D13-Aug-201344.9 KiB

wrapper.hH A D13-Aug-20139.3 KiB

README

1To create "smbsh" on Linux, just type "make".
2
3If you execute "smbsh" in *this* directory (so that it can find the required
4shared library), you'll find yourself in a new shell.  You can then issue
5commands referencing the "/smb" pseudo-filesystem:
6
7  ls /smb
8  ls /smb/WORKGROUP_OR_DOMAIN
9  ls /smb/SERVER
10  ls /smb/SERVER/SHARE
11  ls /smb/SERVER/SHARE/PATH
12
13Note that WORKGROUP_OR_DOMAIN is *not* used other than at that level.  This is
14consistent with the smb:// URI definition.
15
16Usage:
17  smbsh [-L <path to find smbwrapper.so>]
18        [-p <library to load before smbwrapper.so>]
19        [-a <library to load after smbwrapper.so>]
20        [-d <debug value for libsmbclient>]
21        [-n]                                    (do not ask for username/password)
22        [-W <workgroup>]
23        [-U <username%password]
24        [command]
25
26So to list the contents of \\MYDESK\C$ where a username (adventure) and password
27(xyzzy) are required, and with smbwrapper.so installed in /usr/share/samba, you
28could try:
29
30  smbsh -L /usr/share/samba -U adventure%xyzzy ls '/smb/MYDESK/C$'
31
32(It's a good idea to get in the habit of surrounding windows paths in single
33quotes, since they often contain spaces and other characters that'll give you
34headaches when not escaped.)
35
36This smbsh seems to work quite well on Linux 2.4 and 2.6.  The biggest problem it
37has is in tracking your current working directory.  I haven't had the time to
38track that down and fix it.
39
40Derrell Lipman
41