es for this type of
thing.
Yes; here is soemthing to get you started -- change server/directpry
references as approppriate:
Thank you for the example.
I am able to upload the image file already. That part I have figured
out. What I'm more concerned about is setting appropriate permissions o
On Nov 19, 2004, at 12:37 PM, Chasecreek Systemhouse wrote:
On Fri, 19 Nov 2004 12:29:21 -0600, Ed Pigg <[EMAIL PROTECTED]>
wrote:
I want to make sure that I am taking the site security seriously and
don't expose it to threats needlessly.
=) You have taken a step into a largewr world. Welcome
On Fri, 19 Nov 2004 12:29:21 -0600, Ed Pigg <[EMAIL PROTECTED]> wrote:
> I want to make sure that I am taking the site security seriously and
> don't expose it to threats needlessly.
=) You have taken a step into a largewr world. Welcome =)
The Internet is not a secure place. Securely creati
pe of
thing.
Yes; here is soemthing to get you started -- change server/directpry
references as approppriate:
Thank you for the example.
I am able to upload the image file already. That part I have figured
out. What I'm more concerned about is setting appropriate permissions
on the upload
On Fri, 19 Nov 2004 11:50:41 -0600, Ed Pigg <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to setup a system where users can upload images to a
> designated uploads dir. Once the file is successfully uploaded I want
Keep account creation and uploads separate functions.
> Do I need to make t
e the
permissions of the upload dir to world writable in order for this to
work. I'm not exposing the development system to the internet, so I can
do this now while testing the application, however I want to make sure
that I'm not exposing the upload dir or final image dir to mischief.
Do I n
Zentara wrote:
Then after the file is successfully created, make sure it is
"world-readable".usually mode 755.
But most systems are setup with a default filemask set, to create
files as mode 644 as default.
So after you create your file, do a chmod on it to make sure its
755.
$r_file = 'z';
ch
at's the file's
permissions? (644 required, I suppose.)
Btw, exactly where is the file located?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
I am writing a file (created using File::Temp) to a directory in my
webserver documents directory. I cannot access it from my script
afterwards. It is a graphic created by the script that I then want to
display in an html page. Everything works except that I get an error
that I don't have ac
ut here I'm not.
Any Ideas?
-
Mike Garner
Computer Services, WSC
[EMAIL PROTECTED]
970.943.3123 (voice)
970.943.7069 (fax)
-Original Message-
From: Tom Kinzer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 9:34 AM
To: [EMAIL PROTECTED]
Subject: RE: OLE Permissi
astSet", 0);
...
-Tom Kinzer
-Original Message-
From: Mike Garner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 6:44 AM
To: [EMAIL PROTECTED]
Subject: OLE Permissions in CGI
My guess is that this is more of an IIS 6.0 Security issue but I thought I'd
ask some PERL
My guess is that this is more of an IIS 6.0 Security issue but I thought I'd
ask some PERL gurus to look through the PERL first.
I've written a script that resets the password for a user in our Active
Directory for our help desk folks. The script works fine from several
computers and works when
nt browser.
> >
> > Again, your problem is not related to perl, so you could get more (
> > better )
> > information in the proper forum.
> >
> > Todd W.
> >
> >
> >
> It is a Perl issue I have. What is happening is that the Perl script is
>
On Sun, 7 Sep 2003 17:25:20 +
Greenhalgh David <[EMAIL PROTECTED]> wrote:
>
> psuedo
> chmod 777 textfile.txt
> open textfile.txt for write
> write to the textfile.txt
> close textfile.txt
> chmod 644 textfile.txt
> end psuedo
Maybe:
sysopen('FILE', "./textfil
On Sun, 7 Sep 2003 17:25:20 +
Greenhalgh David <[EMAIL PROTECTED]> wrote:
> psuedo
> chmod 777 textfile.txt
> open textfile.txt for write
> write to the textfile.txt
> close textfile.txt
> chmod 644 textfile.txt
> end psuedo
well you can try
psuedo
system("ch
On Sunday, September 7, 2003, at 08:31 AM, Octavian Rasnita wrote:
Read:
perldoc -f chmod
It isn't working.
$cnt=chmod 0644 'textfile.txt';
after running, textfile.txt is still -rw-rw-rw-
Is this command possible as the WWW user when running the CGI?
Dave
--
To unsubscribe, e-mail: [EMAIL
On Sunday, September 7, 2003, at 08:31 AM, Octavian Rasnita wrote:
Read:
perldoc -f chmod
Thanks for that, checked it on the web as I didn't get an entry on my
local perldoc (which is why I asked here!
Is that new to 5.8? I'm on 5.6, the target server is 5.3.
Dave
--
To unsubscribe, e-mail:
Read:
perldoc -f chmod
- Original Message -
From: "Greenhalgh David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 07, 2003 9:08 AM
Subject: File Permissions
> Hi All,
>
> I have a script which, amazingly, is doing exactly what
not happy about having the permissions of the text file as allowing
write access to the WWW user. What I would like to understand is how to
set the permissions (or ownerships) from within the Perl script, so the
psuedo code may look something like this:
psuedo
chmod 777 textfile.txt
a text file on the server. The text
> file itself is used as the input to a Java applet.
>
> All works fine on my local machine, but on the remote server the applet
> bombs out with a file permission error. How do I set the permissions on
> an output file, and what permissions shoul
machine, but on the remote server the applet
bombs out with a file permission error. How do I set the permissions on
an output file, and what permissions should I use to ensure that a text
file stored on the server (in a different directory to the script) can
be properly used by the applet? (664
On Wed, 25 Dec 2002 19:39:58 +, [EMAIL PROTECTED] (Philip
Pawley) wrote:
>I'm a newbie, so the below is a question: Is this problem of cgi permissions
>different when you are just running a perl script from a virtual include - as I am?
>
>Reading this thread, I did some tes
I'm a newbie, so the below is a question: Is this problem of cgi permissions different
when you are just running a perl script from a virtual include - as I am?
Reading this thread, I did some tests and changed my script's permissions to 500 and
it still works fine. (I first did it
ges on
>that server will need to be added to that group.
>
>2. I saw that I need to give read permission also for a script to work, not
>only execute permissions.
>
>The only solution would be to run the Apache server with my user, but I
>don't know how to do that.
>How
d if it will be made
> to stay in the same group with me, the other users that have web pages on
> that server will need to be added to that group.
>
> 2. I saw that I need to give read permission also for a script to work,
not
> only execute permissions.
>
> The only solution
n" <[EMAIL PROTECTED]>
To: "Octavian Rasnita" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, December 25, 2002 3:24 AM
Subject: Re: CGI scripts permissions
I assume you are connecting to a database?
CGIs should have 500 permission and SHOULD NOT co
permission also for a script to work, not
only execute permissions.
The only solution would be to run the Apache server with my user, but I
don't know how to do that.
How is this possible?
In other cases, the security of CGI scripts is 0.
Thank you.
Teddy,
Teddy's Center: http://teddy.fcc
No, I don't have a problem with the web page visitors but with the other
users that have accounts on that server.
They could use Telnet or SSH to view the files and directories.
They can see all my files if they have 755 permissions.
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Ema
.
Regards
Richard KHOO Guan Chen
On Tue, 24 Dec 2002, Octavian Rasnita wrote:
> Hello all,
>
> Please tell me what file permissions should I use for a CGI script.
>
> I don't want others users from that server to view the content of my scripts
> because they contain passwo
ello all,
>
> Please tell me what file permissions should I use for a CGI script.
>
> I don't want others users from that server to view the content of my scripts
> because they contain passwords for MySQL databases.
> If I chmod 755 the scripts, the other users will also be a
Hi,
At 24-12-2002 18:09 +0200, Octavian Rasnita wrote:
Please tell me what file permissions should I use for a CGI script.
chmod 755
Can I deny other users to see the content of the cgi-bin directory (chmod
700) and chmod 755 only the files?
Put a index.cgi in your cgi-bin directory that
Hello all,
Please tell me what file permissions should I use for a CGI script.
I don't want others users from that server to view the content of my scripts
because they contain passwords for MySQL databases.
If I chmod 755 the scripts, the other users will also be able to see the
files.
officers so
I have watched the process of "gee, shouldn't there be a faq for this"
in more complex ways. But for some reason they keep minting
those 90 day wonders The big laugh of course was the giggle we
had when the 'butt of our jokes' were "BS - com
) There
is a complete list of Perl-related lists at
http://lists.perl.org/. (Yes, I understand the
permissions question was not really a Perl-only
question, but it *is* related to CGI, and could have
been asked before.)
- John
__
Do You Yahoo!?
Y
[snip]
> As far as the topic in the subject, it is not a perl issue. When
> you want to
> write in a file or execute a program, the permissions you choose have
> nothing to do with the language you choose or if you are
> executing code in a
> CGI environment, so no, th
Its too bad I get flamed for suggesting the poster figure it out theirself.
It goes to show how many people "want the answer" as opposed to actually
learning how to answer the question.
As far as the topic in the subject, it is not a perl issue. When you want to
write in a file or execute a pr
On Monday, April 22, 2002, at 10:46 , David Kirol wrote:
> Thanks Drieux I didn't want to take the time to write what you did, but I'
> m
> glad to see it on the list.
> David (aka sometimeAnotTooBrightNewbie)
Caveat Emptor - What Do I Know? All I know is what I have
figured out - and as I say,
Thanks Drieux I didn't want to take the time to write what you did, but I'm
glad to see it on the list.
David (aka sometimeAnotTooBrightNewbie)
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:59 AM
To: cgi
Subject: Re: Write permi
On Sunday, April 21, 2002, at 07:42 , Todd Wade wrote:
> First of all, this has nothing to do with perl, but
given that I wrote my first cgi tested it with
perl first.cgi
and got the bugs out, ftp'd it up and then LEARNED
the hard way that it had to be 755 - we all start
out some
mited experience
rest more on my testing rather than the site wide.
> Please tell me how should I set the rights for some files and folders in
> my
> web page:
> 1. The cgi-bin directory.
755 - no one but the player should have write permissions.
but if you want anyone to run the cgi code
;Todd Wade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 21, 2002 5:42 PM
Subject: Re: Write permissions and other rights
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message
003d01c1e8db$f6df0f60$[EMAIL PROTECTED]">news:003d0
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message
003d01c1e8db$f6df0f60$[EMAIL PROTECTED]">news:003d01c1e8db$f6df0f60$[EMAIL PROTECTED]...
> Hi all,
>
> Please tell me how should I set the rights for some files and folders in
my
> web page:
First of all, this has nothing to do with perl, b
Hi all,
Please tell me how should I set the rights for some files and folders in my
web page:
1. The cgi-bin directory.
2. The Perl script files from this directory.
3. The html directory.
4. The html files from this directory.
5. The php files.
6. The folder where I want to keep page counte
l
--
>From: "Hughes, Andrew" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: permissions question
>Date: Mon, Feb 25, 2002, 1:36 pm
>
> I have a pipe delimited text file in which I am collecting form sub
>>I can see how that would be ideal. However, I am not able to do that at
>>this time. Short of keeping it outside of a web server, what security
>>precautions (including permissions 666 etc.) could I take to keep people
>>from viewing the text file from the browser.
h
I can see how that would be ideal. However, I am not able to do that at
this time. Short of keeping it outside of a web server, what security
precautions (including permissions 666 etc.) could I take to keep people
from viewing the text file from the browser.
Thanks,
Andrew
-Original
I have a pipe delimited text file in which I am collecting form submissions.
I have the permissions currently set to 666. The problem is that if someone
can figure out the path the .txt file, they can view it from their browser.
I do not want this to happen. After a period of time, I am
Hi,
I'm trying to copy a file to another preserving the file permissions (i'm
using NT 4.0).
I'm using File::Copy;
But when i copy a file to another the new file do not get the same
permissions as the old one...
I'm also trying to use syscopy ($file1, $file2);
but i got n
Hi,
I'm trying to copy a file to another preserving the file permissions (i'm
using NT 4.0).
I'm using use File::Copy;
But when i copy a file to another the new file do not get the same
permissions as the old one...
I'm also trying to use syscopy ($file1, $file2);
Hello,
what is causing the renamed file to take permissions of 755
instead of 644? -- am I doing this correctly -- there will be only one user
of the script .. do I need 'file lock' here?
Thanks to Bob Showalter for the formatting info on 'strftime'
"
Hi,
I have a site running locally under /home/me/public_html. With
sub-folders of cgi_bin and data. What are considered to be the best
permissions for the directories and files. I want to copy this accross
to a server. Data files are created dynamically from a script running
on the local
51 matches
Mail list logo