Re: [users@httpd] apache access permission

2012-10-20 Thread jupiter
On 10/18/12, Mark Montague m...@catseye.org wrote: But in your original email you said, the ssh key is -rw--- permission which deny apache to access it. If apache owns the key, it should be able to read it. Or do you mean /usr/bin/ssh refused to use the key, even though it could read

Re: [users@httpd] apache access permission

2012-10-18 Thread jupiter
Thanks Mark. On 10/17/12, Mark Montague m...@catseye.org wrote: Also, are you sure you have no home directory for the user apache? On CentOS systems, if you check in the sixth field of the /etc/passwd entry for user apache, you should see a home directory of /var/www Yes, you are right.

Re: [users@httpd] apache access permission

2012-10-18 Thread Mark Montague
On October 18, 2012 5:56 , jupiter jupiter@gmail.com wrote: For the ssh key, it is important to keep it secure. Anyone who gets this key can use it to log in to any system that trusts the key. So it is best to have the key be single-purpose, used only for your PHP web application and not

[users@httpd] apache access permission

2012-10-17 Thread jupiter
Hi, I installed httpd on CentOS 6.2, there is apache user name, but there is no apache home directory. I have php files which need to access an ssh key for ssh communication, but the ssh key is -rw--- permission which deny apache to access it. How do you handle apache access permission?

Re: [users@httpd] apache access permission

2012-10-17 Thread Mark Montague
On October 17, 2012 7:09 , jupiter jupiter@gmail.com wrote: I installed httpd on CentOS 6.2, there is apache user name, but there is no apache home directory. I have php files which need to access an ssh key for ssh communication, but the ssh key is -rw--- permission which deny apache to