JFS Utilities
Included with JFS version 0.05 are 5 useful programs for manipulating
the JFS filesystem. These can be useful if another program (such as a CGI)
needs to add or delete a user or file. The programs are :
- ChangeUser
ChangeUser <JFS root> <username> <real name> <password> <home dir>
Adds or changes the details of a JFS user, depending on whether a user
with the given username already exists. The JFS root
parameter is the local filesystem directory that serves as the root
of the JFS filesystem.
- DeleteUser
DeleteUser <JFS root> <username>
Deletes an existing user from the JFS filesystem at the given
server root.
- BuildDirectory
BuildDirectory <JFS root> <directory>|<file>
In order for a local file to appear in the JFS filesystem, in must
an entry in the .jfs file in the directory it is in. This program when
given a directory, finds all local file in that directory (and it's
subdirs) and adds them to the JFS filesystem using the permissions of
their parent directory. If given a file argument, simply add that file
only.
- DeleteFile
DeleteFile <JFS root> <directory>|<file>
Deletes a file or a directory (and everything in it) from the JFS
filesystem.
- RenameFile
RenameFile <JFS root> <old> <new> <user>
Moves a file or directory to a new location. Both the old and
new parameters must be full JFS pathnames, and need not be
in the same directory. The user parameter is the name of the
user who will own the newly created file (the need for this is a bug).
Also included with the distribution is the program ShellInterface,
which provides a basic Unix-like command line interface to a JFS server.
This program is still under development though, and is less functional that
the FileBrowser JFS client. It's command line arguments are :
ShellInterface <server> [-port number] [-name username] [-pass password].
If no port is given, the default JFS port is used.
If no username or password is given, they are prompted for before connecting
to the server.