Re: setting file permissions on a web server
- From: Rene Pijlman <reply.in.the.newsgroup@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 11:40:52 +0200
John Salerno:
I always read about how you need to set certain file permissions (for
cgi files, for example), but it's never been clear to me *how* you do
this. I know you can run the line
chmod 755 scriptname.py
but *where* do you run this?
This is a Unix/Linux command. You run it in a shell login on the server
(e.g. in Putty, SecureCRT, or some other ssh client you're using).
Is there a way to put the above line within the script perhaps, so that
the script sets its permission automatically?
Not in the script itself via cgi of course, because it needs certain
permissions before it can be run as cgi script. But you could put the
command in an installation script that installs the cgi script.
--
René Pijlman
.
- References:
- setting file permissions on a web server
- From: John Salerno
- setting file permissions on a web server
- Prev by Date: Re: self modifying code
- Next by Date: Re: setting file permissions on a web server
- Previous by thread: setting file permissions on a web server
- Next by thread: Re: setting file permissions on a web server
- Index(es):
Relevant Pages
|