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]

Reply via email to