smbsh

   
smbsh

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 parameters lmhosts , host , wins , and bcast , 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 supplied using the username % password format. If either or both the username and password are not provided, smbsh will prompt interactively for them.

-W workgroup

Specifies the NetBIOS workgroup or domain to which the client will connect. This overrides the workgroup parameter in the Samba configuration file and is sometimes necessary to connect to some servers.

   


Using Samba
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition
ISBN: 0596007698
EAN: 2147483647
Year: 2003
Pages: 475

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net