Perl

Moderators: Jonathan
Number of threads: 1259
Number of posts: 3644

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
UNIX file permissions Posted by Karl on 28 May 2000 at 10:24 PM
I have a web account that supports scripting and cgi-bin.<br>
<br>
How can I let my Perl program read and write data to a text file, but at <br>
the same time, I don't want anyone from being able to type the filename<br>
into their browser and download it?<br>
<br>
What would the file permissions be set at? What would be the permissions <br>
of the directory where my text data file is located be set at?<br>



Edit Report
Re: UNIX file permissions Posted by tr on 20 Jun 2000 at 3:45 AM
: I have a web account that supports scripting and cgi-bin.<br>
: <br>
: How can I let my Perl program read and write data to a text file, but at <br>
: the same time, I don't want anyone from being able to type the filename<br>
: into their browser and download it?<br>
: <br>
: What would the file permissions be set at? What would be the permissions <br>
: of the directory where my text data file is located be set at?<br>
: <br>
: <br>
<br>
file perms will need to be set at 777 for cgi write<br>
change to somelike 400 and so only the owner can read,<br>



URL:http://plebian.com

Edit Report
Re: Re: UNIX file permissions Posted by Me on 7 Jul 2000 at 8:46 PM
Just to clearify some things, when I type the full pathname of a file in <br>
the browser address window like:<br>
http://www.blah.com/cgi-bin/data.txt<br>
<br>
What prevents me from reading this file? The permissions of the directory<br>
or the permissions of the file?<br>
<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.