Appropriate File Permissions

R

Robert TV

Hello,

Several of my scripts read and write data to text files located the cgi-bin
or my server. I'm curious as to the correct file permissions I should be
using. No outside sources access the text file data, only the perl scripts
in thier directory. I have been using 755 for all my perl scripts and 777
for all text files that get read and written to. I ask these questions for
security purposes, as some of the text files contain sensitive data. Should
I be using 755 for perl scripts and 777 for the text files? Thanx!

RTV
 
T

Tintin

Robert TV said:
Hello,

Several of my scripts read and write data to text files located the cgi-bin
or my server. I'm curious as to the correct file permissions I should be
using. No outside sources access the text file data, only the perl scripts
in thier directory. I have been using 755 for all my perl scripts and 777
for all text files that get read and written to. I ask these questions for
security purposes, as some of the text files contain sensitive data. Should
I be using 755 for perl scripts and 777 for the text files? Thanx!

Would the content of your question be any different if you had written the
scripts in python?
 
T

Tad McClellan

Robert TV said:
Several of my scripts read and write data to text files located the cgi-bin
or my server. I'm curious as to the correct file permissions I should be
using. No outside sources access the text file data, only the perl scripts
in thier directory. I have been using 755 for all my perl scripts and 777
for all text files that get read and written to. I ask these questions for
security purposes, as some of the text files contain sensitive data. Should
I be using 755 for perl scripts and 777 for the text files? Thanx!


What is your Perl question?
 
R

Robert TV

Tad McClellan said:
What is your Perl question?

??? Two inquiries in my original post:

- I'm curious as to the correct file permissions I should be using.
- Should I be using 755 for perl scripts and 777 for the text files?

RTV
 
P

peter pilsl

Robert said:
??? Two inquiries in my original post:

- I'm curious as to the correct file permissions I should be using.
- Should I be using 755 for perl scripts and 777 for the text files?

Maybe Tad wanted to tell you that none of these question actually had to do
with perl ?

just a guess :)

peter
 
T

Tad McClellan

Robert TV said:
??? Two inquiries in my original post:

- I'm curious as to the correct file permissions I should be using.


If you were using Python instead of Perl, the answer to that
question would still be the same.

- Should I be using 755 for perl scripts and 777 for the text files?


If you were using Python instead of Perl, the answer to that
question would still be the same.


You do not have a Perl question.

You have a question about filesystem permissions for CGI programming.

You should ask your question in a newsgroup about CGI programming such as:

comp.infosystems.www.authoring.cgi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,351
Latest member
LolaD32479

Latest Threads

Top