Title: db.php Permission
Last modified: January 13, 2024

---

# db.php Permission

 *  Resolved [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/db-php-permission/)
 * Hi, I noticed that the permissions of the db.php file are set to 0777.
   Isn’t 
   this dangerous? Should I change it? Is there any problem with the change? Is 
   this the default setting?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 4 months ago](https://wordpress.org/support/topic/db-php-permission/#post-17345543)
 * How are you checking the permissions? As far as I know, the permissions on a 
   symlink itself are irrelevant because the system always uses the permission of
   the target file. So in your case you should take a look at the permissions of
   the `wp-content/plugins/query-monitor/wp-content/db.php` file.
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/db-php-permission/#post-17345928)
 * This file you mentioned has 0644 permissions
   But I have seen a file of your plugin
   in this path:wp-content/db.phpShould I delete it?
 * ![](https://i0.wp.com/www.uplooder.net/img/image/11/cf5a279c8bb5ce87469d44f501614e4f/
   12.png?ssl=1)
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 4 months ago](https://wordpress.org/support/topic/db-php-permission/#post-17346940)
 * In that case all is good. The file `wp-content/db.php` is a symlink to that file
   which allow Query Monitor to collect additional info about database queries.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘db.php Permission’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/db-php-permission/#post-17346940)
 * Status: resolved