Re: CGI scripts permissions

2002-12-24 Thread Richard KHOO Guan Chen
I assume you are connecting to a database?

CGIs should have 500 permission and SHOULD NOT contain the password.  
Instead write a perl module which return the database_handle and put that
together with the other modules (/usr/lib/perl5/5.8.0/). Then just
call the module in your CGI script.

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 passwords for MySQL databases.
 If I chmod 755 the scripts, the other users will also be able to see the
 files.
 
 Can I deny other users to see the content of the cgi-bin directory (chmod
 700) and chmod 755 only the files?
 Or, ... do I have other options?
 
 Thank you.
 
 Teddy,
 Teddy's Center: http://teddy.fcc.ro/
 Email: [EMAIL PROTECTED]
 
 
 
 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Perl for Windows 98

2002-03-18 Thread Richard KHOO Guan Chen

Er What is this DCOM?  I thought I did not see any mention of this in 
the ActiveState site.

I just downloaded (last night, in fact) and installed the Windows Installer 
from the ActiveState site and then successfully installed ActivePerl 5.6.1 
on my Windows98 Lite (Windows 98 with 95 interface). Works I think. Just 
tested it with the simple example.pl script.




At 04:26 PM 3/18/02 +, John Edwards wrote:
 From the requirements for ActivePerl 5.6

Windows 98

Microsoft Windows Installer 1.1+ (available from
http://download.microsoft.com/download/platformsdk/wininst/1.1/W9X/EN-US/Ins
tMsi.exe)
Internet Explorer 5+ (available from http://windowsupdate.microsoft.com)
DCOM for Windows 98 (available from
http://www.microsoft.com/com/resources/downloads.asp)

HTH

John

-Original Message-
From: Johnson, Shaunn [mailto:[EMAIL PROTECTED]]
Sent: 18 March 2002 16:22
To: [EMAIL PROTECTED]
Subject: RE: Perl for Windows 98


--come on guys!  *lol*

--let me start from the beginning:
sometime ago, i asked for, and got,
perl training.  it was cool.  i got a
better understanding of what
was going on, methods, practical
application, etc ...

--the training was ON RedHat 7.2,
perl version 5.6.1.  so it's NOT that
i WANT to install it on Windows ... it's not
for me!  seriously!  would i let you
guys down like THAT? (answer: no)

--however, the other folks in the class
don't have access to the server so
readily.  some have to use their
laptops to get stuff done.  while they're
on the road, they can write a few things
and move it on the production server
with a few modifications.

--i have no control over what OS they
put on their laptops, but they did ask
for Perl for Windows (Windows '98 no less).

--so THAT is the *real* reason why i need
Perl for Windows.


-X


-Original Message-
From: John Edwards [mailto:[EMAIL PROTECTED]]

Sure. They're called Windows 2000 and Linux

I wouldn't touch Win98 with a bargepole. Especially for developing on. As
soon as you get a perl script that goes rouge and starts eating memory it
will be much harder to kill off in Win98 than a proper OS.

You could always install the 5.22 version from activestate. It's hidden away
in the older versions of perl section IIRC.

[snip]


--Confidentiality--.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]