[an error occurred while processing this directive]

HowTo - A Simple Perl Script

For starters, here is a very simple perl script utilizing CGI.pm, which works in the userpages.umbc.edu environment -- and probably every other environment in the world. It takes a single user input, and does something based on that input...

HowTo - Writing To A File

Being able to write to a file in your account takes a bit more work, and requires you to set some ACL information on your account. We'll assume that you don't want the casual user to be able to view this information, so we will create a non-public directory in your 'pub' area that will be used to store the file. This directory will have the following access control list:

(please see the below section on security -- placing these ACL entries on your directories may expose your account to potential comprimise)

And we create this directory, and set the ACL's with the following commands:

irix1[1]% cd ~/../pub
irix1[2]% mkdir cgi_data
irix1[3]% fs setacl cgi_data system:anyuser none www.usercgi write
irix1[4]% fs listacl cgi_data             check our work
Access list for cgi_data is
Normal rights:
  system:administrators rlidwka
  banz rlidwka
  www.usercgi rlidwk
irix1[5]%
    

Here's a modification of the "simple example" from above that creates a DBM file in the directory we've created, and keep a count of every visitor to our page.

Security - There Is None

Just to be out front and 100% honest, by allowing the www.usercgi AFS user access, read or write, to files in your control, you are exposing these files to:

With that said, neither UMBC or OIT will take any responsiblity for the security or integritity of those files stored in areas that have read or write access by the www.usercgi user. In addition, we ask that any user asking for "input" on web forms that store data in these areas to make it clear that any information entered on such forms is not stored in a secure method.

Protecting Yourself

Acceptable Use

The primary purpose of the user CGI access is for instructional purposes. As mentioned in the Policy for Responsible Computing, use of UMBC systems for commercial purposes is not allowed. In addition to this restriction, we also reserve the right to remove any user CGI or Web Page that places a significant burden on resources such that the instructional mission of these services are impacted.

As mentioned above in the security section, certain assumptions are made that the users of this service will play nice, and will not use this service to:

With that said, any of the above activities will be considered, for the purposes of the previously mentioned policy as: Access information resources, data, equipment, or facilities in violation of any restriction on use, and may result in one or more of the following actions:

[an error occurred while processing this directive]