Re: SQL Access Problem
From: jaywhy (jaywhy2@home.com)Date: 10/24/01
- Previous message: Praise: "Building up a shell service."
- In reply to: Antoine Pouch: "Re: SQL Access Problem"
- Next in thread: Marc Ende: "Re: SQL Access Problem"
- Next in thread: Steffen Dettmer: "Re: SQL Access Problem"
- Reply: Marc Ende: "Re: SQL Access Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 23 Oct 2001 18:13:21 -0400 Subject: Re: SQL Access Problem From: jaywhy <jaywhy2@home.com> To: Antoine Pouch <antoine@ws-interactive.fr>, <focus-linux@securityfocus.com> Message-ID: <B7FB63C1.39E8%jaywhy2@home.com>
on 10/22/01 12:20 PM, Antoine Pouch at antoine@ws-interactive.fr wrote:
>
> Don't run Apache as nobody. Be nice to him, give him an user account.
> Unless someone can explain why it should be run as nobody ?
It doesn't matter what user you run Apache at, because the SQL configuration
file still most be readable by the apache user. Therefore, anyone with CGI
executable access can print out the file.
Since I wrote the original message, I figured out a few things that can be
done to get around the problem. None are really that great.
1. Run suExec. Which wouldn't allow you to access files beyond your
document root, and also has a few other security checks.
2. Run proprietary web server. Proprietary web server could run as the
owner of the file and Apache as another user.
3. Run two Apache's. One as a normal user and one who as the owner of the
SQL configuration file.
The best solution is suExec by far. Does anyone run Miva or any other
commercial shopping cart programs, because they are probably all susceptible
without suExec.
-- Jason Yates - jaywhy2@home.com Network Administrator - RHCE"Thoughtcrime does not entail death: thoughtcrime IS death."
- Previous message: Praise: "Building up a shell service."
- In reply to: Antoine Pouch: "Re: SQL Access Problem"
- Next in thread: Marc Ende: "Re: SQL Access Problem"
- Next in thread: Steffen Dettmer: "Re: SQL Access Problem"
- Reply: Marc Ende: "Re: SQL Access Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|