Solved

Writing to a passworded file

Posted on 1998-03-28
2
146 Views
Last Modified: 2013-12-25
I have an HTML form which is submitted to a secure server (SSL) and my CGI parses it and stores its information in a file on the server. I want the file to be able to be accessed and/or deleted only by someone with a password. How can I do this? Put the file in a password protected directroy? If so, how can the CGI program write to it? I need to maintain securtiy. By the way, I use PERL.
0
Comment
Question by:cbutton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
julio011597 earned 100 total points
ID: 1832224
> How can I do this? Put the file in a password protected directroy?

Yes, you put it in a password protected directory.

> If so, how can the CGI program write to it?

Access control works for people trying to access your page from the web; instead, your CGI runs as process on your machine, and its owner is the web server user; so the CGI can access any files the web server user can access; i.e. what the CGI process can or cannot do has nothing to do with web access control.

Regards.
0
 

Author Comment

by:cbutton
ID: 1832225
I haven't tried it out yet, but what you say makes sense.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question