Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8753747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:29:04+00:00 2026-06-13T13:29:04+00:00

I think if I granted the apache user appropriate privileges and used the ident

  • 0

I think if I granted the apache user appropriate privileges and used the ident authentication method, that would make the connection more secure because then the password wouldn’t need to be stored in a connection string (which might possibly leak if there is a PHP error or Apache misconfiguration and the PHP code is accidentally sent to the client).

Also, that way the security of the connection would depend on how secure the host system is. I disabled root login over ssh and only permit public key authentication so I think it is pretty secure.

Does this have any significant security benefits or is it just wishful thinking? Is it necessary at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:29:05+00:00Added an answer on June 13, 2026 at 1:29 pm

    If your DB is only listening on localhost (and it should be if at all possible) then it doesn’t make tons of difference how you auth to it. If the attacker breaks in, they’re likely to break in via the public services … in your case Apache/PHP. In that case they’re going to have access to the DB via whatever auth method you use, because they have access to whatever your Apache/PHP setup has access to.

    It’s more important to make sure that your app doesn’t allow arbitrary SQL to pass through or allow SQL injection, remote code inclusion, etc, so the attacker doesn’t get local access to the host.

    I’d prefer to use md5 anyway – because the password is no value if stolen when they can’t connect from anything except 127.0.0.1, and it means they have to go to the effort of extracting the password from a script (or escalating privs) in order to get into the DB if they do manage to exploit the web server or scripts running on it. Just having ident as Apache won’t be enough.

    More importantly, it allows you to compartmentalise access by application, so MyTicketTracker that you wrote on a drunken weekend as a tool to play with SQL injection doesn’t have access to the same DBs as TheCriticalAccountingApplication. It won’t stop a determined attacker, but it might slow a casual one down a bit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the frameworks i've used (granted not that many.. pylons,cakephp,rails,etc) all seem to use a
Think about doing this: import matplotlib.pyplot as plt plt.plot(x_A,y_A,'g--') plt.plot(x_B,y_B,'r-o') plt.show() How would you
I think that handlers in android are tools to get different objects that are
I think I have a basic understanding of this, but am hoping that someone
I'm using Xampp (on win server 2003) and I've granted both PHP and Apache
I have a script on my webserver that initiates a HTTPS connection with a
Okay, the title is a mouthful and I think that's probably why it has
My question is pretty straightforward: You are an executable file that outputs Access granted
It seems like it's taken for granted that you must not use Webrick as
I tend to get the feeling that most folks here think SVN is gold-plated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.