Released fmweb,
the Universal
Web-based
File Manager


Programmer Frank Hoehnel just releases fmweb and uploads the file (fmweb093.zip, 100,80Kb) on Hobbes. fmweb is a Java based file manager for local or remote access. The output of fmweb is HTML. The user needs a Web-Browser (currently only Netscape is supported) to access fmweb from the same machine or from anywhere over the TCP/IP network. Although fmweb is a platform-independent Java application, it offers many functions that specialized file managers for the operating system provide.Operating System/Version: Java 1.1.4 (tested on OS/2 Warp 4, Win95 and AIX)


The Program, by the Author


Introduction

fmweb is a Java based filemanager for local or remote access. The output of fmweb is HTML. The user needs a WEB-Browser (currently only Netscape is supported) to access fmweb from the same machine or from anywhere over the TCP/IP network. Although fmweb is a plattform-independent Java application, it offers many functions that specialized file managers for the operating system provide.

Security

fmweb provides an authentication mechanism based on userid and password as well as a list of allowed hosts (IP addresses). If fmweb receives a request from a Web-Browser it checks first if the IP address of the incomming request is in the list of allowed addresses. If yes, the user is being asked for userid and password. If they are correct, the IP address is set authenticated and following requests from this address are serverd. To make it more difficult for hackers to use such an authenticated IP address for unallowed access, the authentication is time-limited and expires after a configurable time period.
The profile containing userid, password and access list should be placed in a secure directory with restricted access (for example in AIX : /etc/security).

Multi-user capabilities

fmweb can handle multiple users simultaneously, if they are not located on the same TCP/IP host. fmweb does not use session keys, so it cannot distinguish between two users comming from the same host. fmweb holds "session information" based on the IP address of the client, for example the current directory path.

Software Requirements

fmweb has been tested on the following operating systems :
fmweb requires the Java Runtime Environment Version 1.1.4 or higher to be installed. If running on OS/2 fmweb requires a HPFS partition. On client side a frames-capable Netscape version is required.
Currently fmweb does not use Java or Javascript on client side.

Installation

Unzip the fmweb.zip file into a separate directory. Edit the configuration files as described later.

Configuration

fmweb reads its configuration parameters from the config file
and from 3 additional profiles :

The main configuration file fmweb.conf

This file must be located in the same directory as the .class files of fmweb. The statement Port defines on wich TCP/IP port fmweb should listen.
FmwebRoot must point to the installation directory containing for example all the .gif files.
AccessLog gives the name of the log file where all transactions are logged.
AuthorizationFile is the name of the security file containing userid, password and the list of IP addresses allowed to access fmweb.
SystemEditor is the path and filename of the system editor used to edit files if the access to fmweb is from the local machine.
SearchProgram is the fully qualified file name of an external search program that is called from fmweb via the search button and gets the actual directory as the only parameter. This parameter is only meaningful for local access to fmweb.
AuthRefreshInterval is the time in minutes after wich new authentication with userid and password is required.

The security file FMAUTH.PRO

The first line contains userid and password. The other lines are IP addresses of hosts that are allowed to access fmweb.

The Association file fmassoc.pro

With this file you can associate application programs to file patterns, for example file extensions.
Each line contains a file name mask, that can include the asterisk (*) as a place holder, and the path and name of the application program that should be started to work with this files.

The list of mime types mimetypes.conf

This file tells fmweb wich mime type to associate to a given file extension. The mime type is sent as part of the header of each HTML page to the Web Browser to tell how the browser should handle this document. If you have files with extensions not contained in the mimetypes.conf file, add it by editing the list.

Starting fmweb

The PATH environment variable should contain the directory where the Java virtual machine executable (Java) is located. If the CLASSPATH environment variable does not contain the installation directory of fmweb, you must change to this directory before calling
 Java fmweb
from the command prompt.
When the message
listening on port ...
is displayed, fmweb is ready for connections from Web-Browsers.
The URL for accessing fmweb is :
 http://ipaddr_or_hostname:port/_fmweb
for example :
 http://localhost:1998/_fmweb

Navigation

To navigate through the directory tree, click on the folder icon in front of the directory name. If you want the files of a directory to be displayed in the right frame, click on the directory name.
You can quickly return to a previosly visited directory via the

fastpath button. The most frequently visited directories are displayed on top of the fastpath list.
If running on OS/2 or Windows fmweb shows a drive window, wich is refreshed every 120 seconds to include new mounted network drives or exclude dismounted drives.

File Functions

Some frequently needed opeartions on files can be accessed via the icons in front of the filename :
View the file in the Browser
Edit the file
Delete the file
Copy or Rename/Move the file
If fmweb is being accessed from the local machine, the edit function starts the system editor as defined in the the configuration file fmweb.conf . Otherwise, the file content is loaded in an edit window in the browser.
More functions on files can be accessed from the file meu, wich is opened by a mouse click on the file's name.
One function is the compression/decompression of files. When fmweb runs under OS/2 or Windows, Info-ZIP's ZIP and UNZIP package must be installed and the executables must be in a PATH directory. Under UNIX fmweb uses the compress/uncompress command to perform this function.
Important Note : The compress functions removes the original files after successfull compression! The uncompress function removes the .ZIP or .Z file after successfull decompression !

Known Problems

Under OS/2 fmweb may cause "drive not ready" popup messages for diskette or CD drives to appear when fweb queries the available drives and there is no medium in the drive. To circumvent this, place the following statement in the config.sys :
AUTOFAIL=YES
Currently there is no support for NLS special characters in file or directory names (for example German umlauts).
Under OS/2 there seems to be a 64 KB size limit for multi-line text areas. The result is that you cannot load more than 64 KB of text in the fmweb editor, wich consists of a html text area displayed in the Netscape browser (Netscape crashes if larger text is loaded into a text area).

CONTACT AUTHOR

If you find a bug or have suggestions for improvement please send an e-mail to the author

Frank Hoehnel
frank_hoehnel@hotmail.com

http://www.geocities.com/RainForest/Canopy/3452/fmweb.html


@Macarlo, Inc.
@Macarlo's Shareware & Web
OS/2
Java Lobby Member
Java Site Accredited

[TOP] [HOME] [INDEX]