The VU School of Engineering supports a service that allows a SEDCON user to publish information in the World Wide Web. The most important thing that a SEDCON user needs to do in order to make use of the SEDCON Personal Publishing service is to create a specially named directory. Then the user can simply place the informaton to be published in files in that directory. The user owns the files and the directory and has nearly total control over access to those resources and make whatever changes to access permissions or file content that the user desires to make.
The VUSE WWW server runs a server daemon that allows each SEDCON user
to have a personal directory of files that can be accessed by the WWW
server.
In order for the server to be able to find your WWW files, this
directory must be named wwwfiles and
must be a subdirectory directly in your
SEDCON home directory.
Additionally, the access modes of your home
directory, the wwwfiles subdirectory, and all files in
the wwwfiles directory must all be set correctly in order
to allow the server to read the files.
To create the wwwfiles directory and correctly set the
access modes on both the home and wwwfiles directories,
you can login to any SEDCON UNIX system (such as
loginhost) and type
cd $HOME
mkdir wwwfiles
chmod a+x . wwwfiles
Note: This chmod(1) command has some
security implications of which you should be aware.
Once you have created your wwwfiles directory, you can create files and publish them to the WWW. Access to any file in your wwwfiles directory is controlled not only by the access modes of the wwwfiles and home directories but also by the of the access modes of the file itself. To be sure that others can read a file in your wwwfiles directory), make sure that you allow provide general read access to the file. As an example, to provide general read access to the file testfile.txt, you would type
chmod a+r testfile.txt
Note:
Some editors function by creating a new file and renaming the old one
so you may have to reset the access modes every time you edit the file.
There are additional instructions concerning the modes of files to be invoked as CGI programs.
In the World Wide Web, the location of a file or service is specified by what is called a Uniform Resource Locator (URL). At some point, you may decide for some reason that you need to specify a file location as a URL. For reasons of security, files on the VUSE WWW server are not available via the names that normally refer to them but the files in a user's wwwfiles directory may be accessed via the special ~username mechanism. The server daemon running on the VUSE WWW server will treat a URL of the form
http://server/~username/filename
as a locator for the file filename in the wwwfiles
subdirectory of the home directory of the user with username username.
For example, you could refer to the file urldemo.txt in the
wwwfiles directory of user drl on the server
www.vuse.vanderbilt.edu as
http://www.vuse.vanderbilt.edu/~drl/urldemo.txt
CGI programs are handled specially and you must use a different sort of referencing URL in order to invoke one as a program. Access to a CGI program via a URL of the sort described above will simply retrieve the (possibly binary) program instead of executing the program and retrieving its output.
While the SEDCON is not a terribly secure environment, the procedure outlined above to make your wwwfiles accessible may appear to make your account terribly insecure. This is not really a problem for three reasons.
For more information about access modes, see the description of the chmod command in section 1 of the UNIX manual and of the chmod system call in section 2 of the UNIX manual.