Solved

Writing to a passworded file

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 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

18 Experts available now in Live!

Get 1:1 Help Now