Solved

Writing to a passworded file

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Autoit restart command not working 6 58
Need help to rewrite script 3 64
How can I do this in Pyhton? 12 113
Renaming multiple file extensions using Powershell 4 37
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

25 Experts available now in Live!

Get 1:1 Help Now