Solved

Writing to a passworded file

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to pick specific file from ftp 13 71
Powershell File Sort 8 45
Batch File- Finding Drive Description 11 41
how to customize the text in the legend in highcharts 3 31
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…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

756 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