I can't do that because I am not the root of that server. I am just a simple user like all other users and I don't wantthem see my files.
Thank you. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] ----- Original Message ----- From: "Richard KHOO Guan Chen" <[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 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]