Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#46409 closed enhancement (duplicate)

Wrong Permisson for wp-config.php

Reported by: boleynsu Owned by:
Priority: normal Milestone:
Component: Upgrade/Install Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

wp-config.ph is chmoded to 0666 which should be 0660.

in /wp-admin/setup-config.php
chmod( $path_to_wp_config, 0666 );

BTW, it would be better to chmod wp-config-sample.php to 0660 in the whatever package since user sometimes copy and modify wp-config-sample.php to wp-config.php

Attachments (1)

46409.diff (571 bytes ) - added by sebastienserre 8 years ago.

Download all attachments as: .zip

Change History (4)

@sebastienserre
8 years ago

#1 @sebastienserre
8 years ago

  • Keywords has-patch 2nd-opinion added

Hello @boleynsu and welcome to Trac!
I created a patch, let's & see ;-)

many thanks for your contribution

#2 @ocean90
8 years ago

  • Component AdministrationGeneral
  • Keywords 2nd-opinion removed
  • Milestone Awaiting Review
  • Severity minornormal
  • Version 5.1

Thanks for the report. We're already tracking this issue in #37264.

#3 @SergeyBiryukov
7 years ago

  • Component GeneralUpgrade/Install
  • Resolutionduplicate
  • Status newclosed

Duplicate of #37264.

Note: See TracTickets for help on using tickets.