1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 NAME="SMBSH">smbsh</H1
27 >smbsh -- Allows access to Windows NT filesystem
28 using UNIX commands</DIV
30 CLASS="REFSYNOPSISDIV"
38 > [-W workgroup] [-U username] [-P prefix] [-R <name resolve order>] [-d <debug level>] [-l logfile] [-L libdir]</P
48 >This tool is part of the <A
57 > allows you to access an NT filesystem
58 using UNIX commands such as <B
68 shell that is dynamically linked in order for <B
90 >Override the default workgroup specified in the
91 workgroup parameter of the <TT
95 for this session. This may be needed to connect to some
99 >-U username[%pass]</DT
102 >Sets the SMB username or username and password.
103 If this option is not specified, the user will be prompted for
104 both the username and the password. If %pass is not specified,
105 the user will be prompted for the password.
113 the user to set the directory prefix for SMB access. The
114 default value if this option is not specified is
122 >-R <name resolve order></DT
125 >This option is used to determine what naming
126 services and in what order to resolve
127 host names to IP addresses. The option takes a space-separated
128 string of different name resolution options.</P
130 >The options are :"lmhosts", "host", "wins" and "bcast".
131 They cause names to be resolved as follows :</P
141 Lookup an IP address in the Samba lmhosts file. If the
142 line in lmhosts has no name type attached to the
145 HREF="lmhosts.5.html"
149 for details) then any name type matches for lookup.
158 Do a standard host name to IP address resolution, using
163 lookups. This method of name resolution is operating
164 system dependent, for instance on IRIX or Solaris this
165 may be controlled by the <TT
169 > file). Note that this method is only used
170 if the NetBIOS name type being queried is the 0x20
171 (server) name type, otherwise it is ignored.
180 Query a name with the IP address listed in the
187 WINS server has been specified this method will be
197 Do a broadcast on each of the known local interfaces
204 parameter. This is the least reliable of the name
205 resolution methods as it depends on the target host
206 being on a locally connected subnet.
211 >If this parameter is not set then the name resolve order
216 (name resolve order) will be used. </P
218 >The default order is lmhosts, host, wins, bcast. Without
219 this parameter or any entry in the <TT
225 > parameter of the <TT
229 file, the name resolution methods will be attempted in this
233 >-d <debug level></DT
236 >debug level is an integer from 0 to 10.</P
238 >The default value if this parameter is not specified
241 >The higher this value, the more detail will be logged
242 about the activities of <B
246 0, only critical errors and serious warnings will be logged.
253 >If specified causes all debug messages to be
254 written to the file specified by <TT
260 >. If not specified then all messages will be
273 >This parameter specifies the location of the
274 shared libraries used by <B
278 value is specified at compile time.
295 > command, execute <B
298 > from the prompt and enter the username and password
299 that authenticates you to the machine running the Windows NT
309 CLASS="PROGRAMLISTING"
343 >Any dynamically linked command you execute from
344 this shell will access the <TT
348 using the smb protocol. For example, the command <B
352 > will show a list of workgroups. The command
356 > will show all the machines in
357 the workgroup MYGROUP. The command
360 >ls /smb/MYGROUP/<machine-name></B
361 > will show the share
362 names for that machine. You could then, for example, use the <B
365 > command to change directories, <B
382 >This man page is correct for version 3.0 of
396 > works by intercepting the standard
397 libc calls with the dynamically loaded versions in <TT
400 >. Not all calls have been "wrapped", so
401 some programs may not function correctly under <B
407 >Programs which are not dynamically linked cannot make
411 >'s functionality. Most versions
416 describe how a program was linked.</P
435 HREF="smb.conf.5.html"
449 >The original Samba software and related utilities
450 were created by Andrew Tridgell. Samba is now developed
451 by the Samba Team as an Open Source project similar
452 to the way the Linux kernel is developed.</P
454 >The original Samba man pages were written by Karl Auer.
455 The man page sources were converted to YODL format (another
456 excellent piece of Open Source software, available at
458 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
460 > ftp://ftp.icce.rug.nl/pub/unix/</A
461 >) and updated for the Samba 2.0
462 release by Jeremy Allison. The conversion to DocBook for
463 Samba 2.2 was done by Gerald Carter</P