Name
smbsh
Synopsis
The smbsh program allows SMB shares to be
accessed from a Unix system. When smbsh is run,
an extra directory tree called /smb
becomes
available to dynamically linked shell commands. The first level of
directories under /smb
represent available
workgroups, the next level of subdirectories represent the SMB
servers in each workgroup, and the third level of subdirectories
represent the disk and printer shares of each server.
Samba must be compiled with the --with-smbwrappers
option to enable smbsh.
Options
-
-d
debug_level
Sets the debug (sometimes called logging) level. The level can range from 0, the default, to 10. Debug level 0 logs only the most important messages; level 1 is normal; levels 3 and above are primarily for debugging and slow smbsh considerably.
-
-l
filename
Sets the name of the logging file. By default, messages are sent to stderr.
-
-L
directory
Specifies the location of smbsh’s shared libraries, overriding the compiled-in default.
-
-P
prefix
Sets the name of the
root
directory to use for the SMB filesystem. The default is/smb
.-
-R
resolve_order
Sets the resolve order of the name servers. This option is similar to the
resolve
order
configuration option and can take any of the four parameterslmhosts
,host
,wins
, andbcast
, in any order. If more than one is specified, the argument is specified as a space-separated list.-
-U
username
Provides the username, and optionally the password, for authenticating the connection to the SMB server. The password can be ...
Get Using Samba, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.