Re: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 10:03 pm, David Tulloh wrote: > Richard Lynch wrote: > >>On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: >> >> >>>By setting the file readable only by root this problem is completely >>>eliminated. Unless a hacker has the root password, they will not be >>>able to com

Re: [PHP] protect password?

2005-11-08 Thread David Tulloh
Richard Lynch wrote: On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: By setting the file readable only by root this problem is completely eliminated. Unless a hacker has the root password, they will not be able to compromise the information in this file. This is how I understand it, a

Re: [PHP] protect password?

2005-11-08 Thread Chris Shiflett
Richard Lynch wrote: > By setting the file readable only by root this problem is > completely eliminated. Unless a hacker has the root password, > they will not be able to compromise the information in this > file. > > This is how I understand it, at least. If Chris reads this > perhaps he can co

RE: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: > By setting the file readable only by root this problem is completely > eliminated. Unless a hacker has the root password, they will not be > able to compromise the information in this file. > > This is how I understand it, at least. If Chris

RE: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 5:36 pm, bruce wrote: > pablo... > > i fail to see how your suggestion is much more secure than placing the > user/passwd information in a file that's outside the web access space, > and > then including the file. > > in either case, the user wouldn't be able to read the in

RE: [PHP] protect password?

2005-11-08 Thread Richard Lynch
Ooooh! We both forgot to warn you: Be VERY careful with and var_dump($_SERVER) and similar coding practices. You're dumping out your username/password in plaintext at that point with this technique! TANSTAAFL! On Fri, November 4, 2005 5:16 pm, Pablo Gosse wrote: > [snip] > Some functions ne

Re: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 2:36 pm, Bing Du wrote: > Some functions need you to provide username and password, for instance > odbc_connect. Even though the username/password just has minimum > access > privileges to the resource, putting it there in clear text in a script > gives > me heartburn. Ho

RE: [PHP] protect password?

2005-11-04 Thread bruce
priamry point was to stress the file aspect is essentially the same, all things being equal. -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 3:45 PM To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] protect password? [snip

RE: [PHP] protect password?

2005-11-04 Thread Pablo Gosse
[snip] pablo... i fail to see how your suggestion is much more secure than placing the user/passwd information in a file that's outside the web access space, and then including the file. in either case, the user wouldn't be able to read the include file. [/snip] Greeting, Bruce. On a dedicated

RE: [PHP] protect password?

2005-11-04 Thread bruce
- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 3:16 PM To: php-general@lists.php.net Subject: RE: [PHP] protect password? [snip] Some functions need you to provide username and password, for instance odbc_connect. Even though the username/password just has mini

RE: [PHP] protect password?

2005-11-04 Thread Pablo Gosse
[snip] Some functions need you to provide username and password, for instance odbc_connect. Even though the username/password just has minimum access privileges to the resource, putting it there in clear text in a script gives me heartburn. How do people handle username/password in such kind o

[PHP] protect password?

2005-11-04 Thread Bing Du
Hello, Some functions need you to provide username and password, for instance odbc_connect. Even though the username/password just has minimum access privileges to the resource, putting it there in clear text in a script gives me heartburn. How do people handle username/password in such kind