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
rootdirectory 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
resolveorderconfiguration 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access