Mediagate MG35

 

smbmount

Page history last edited by John 1 yr ago

smbmount

smbmount is a tool used to mount SMB shares.

Version: 2.0.7

Status: Ported

 



 

Description

 

This program is called in two different instances.

 

First, it will be called when you select a computer in on the Network screen. In this instance, it will enumerate the shares on a given computer, and will create mount points for each of them in /net/computername (which was previously created by nbtscan). It will also create the specified smb.conf (???)

 

Example:

smbmount -b /net/server_name -L server_name -U guest -N -s /hosts/smb.conf C
smbmount -b /net/ATHENS -L ATHENS -U administrator -N -s /hosts/smb.conf C 

 

The second call is when you select a share using the remote. In this instance, it will actually mount the remote share on the corresponding mount point. The actual call is:

 

smbmount //ATHENS/my_share /net/ATHENS/my_share -o password=,username=administrator,ro M

 

Usage

 

Although smbmount's built-in help doesn't show it, there's actually a second "help" buried in the executable:

Usage: service <password> [options]
Version 2.0.7
-s smb.conf           pathname to smb.conf file
-O socket_options     socket options to use
-R name resolve order use these name resolution services only
-M host               send a winpopup message to the host
-i scope              use this NetBIOS scope
-N                    don't ask for a password
-n netbios name.      Use this name as my netbios name
-d debuglevel         set the debuglevel
-P                    connect to service as a printer
-p port               connect to the specified port
-l log basename.      Basename for log/debug files
-h                    Print this help message.
-I dest IP            use this IP to connect to
-E                    write messages to stderr instead of stdout
-U username           set the network username
-L host               get a list of shares available on a host
-t terminal code      terminal i/o code {sjis|euc|jis7|jis8|junet|hex}
-m max protocol       set the max protocol level
-W workgroup          set the workgroup name
-T<c|x>IXFqgbNan      command line tar
-D directory          start from directory
-c command string     execute semicolon separated commands
-b xmit/send buffer   changes the transmit/send buffer (default: 65520)

 

To connect to a network share, you can try the next commands after you connected to the device via telnet:

 

mkdir /hosts/home
smbmount //192.168.1.65/my_share /hosts/home rw

 

Note that you have to use the IP address of the server! (???)

 

License

 

GPL

 

Todo

  • Re-add ALTech nonsense as a wrapper script

 

History

Comments (0)

You don't have permission to comment on this page.