Browse your Windows network with your web browser

I wrote this CGI for a friend of mine who I introduced to Linux. He really dug it. He quickly learned to use SSH and smbmount so that he could access the files on his computers when he was away from home.

I thought I'd make that easier by writing a CGI that would let him skip several steps, and allow him to upload/download files using his web browser and an HTTPS connection.

You can download the tarball, which contains the CGI and some icons, or install the rpm if you're using Fedora Core 1 or newer. The source rpm should build on any Linux system which uses a layout similar to Red Hat.

To install the tarball, simply unpack the file, copy the smb-network.cgi file into your web server's CGI directory, and copy the smbicons folder into your web server's HTML directory.

This CGI doesn't implement any security layer of its own. Access to your SMB shares will be protected by their standard access controls, meaning that an anonymous user can get only as much access as an anonymous user inside your network. If you use SMB shares that are password protected using this CGI, I suggest you use HTTPS to prevent your passwords from being leaked. If you wish to restrict access to this CGI, put it in its own directory, and use Apache's authorization access controls.

e.g. Create a file called .htaccess with the following content:

AuthName "smbnetwork" AuthUserFile "/var/www/cgi-bin/smbnetwork/.htpasswd" AuthType Basic require valid-user Then, create the .htpasswd file like this:
htpasswd -c /var/www/cgi-bin/smbnetwork/.htpasswd zeromus

Screenshots:
Network View
Directory View

ChangeLog
smb-network-1.21.tar.gz
smb-network-1.21-1.noarch.rpm
smb-network-1.21-1.src.rpm
Contributed Debian Packages from Marcel Kolaja, also available here:
smb-network_1.16-1.diff.gz
smb-network_1.16-1.dsc
smb-network_1.16-1_i386.changes
smb-network_1.16-1_i386.deb


Gordon Messmer <yinyang@eburg.com>
Last modified: Thu Apr 08 13:32:08 PDT 2004
hits since 7/31/2001.