Solved

Writing to a passworded file

Posted on 1998-03-28
2
143 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell variable with -SearchBase cmdlet 2 113
Building Windows 10 1 82
inactive users 13 77
Chocolatey under PowerShell is not working properly 3 60
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now