Mentioned in [47005] on Core SVN: Upgrade/Install: When creating the `.htaccess` file in `insert_with_markers()`, make sure it has `0644` as a minimum set of permissions.
Created ticket #40572 on Core Trac: .htaccess has incorrect permissions after installation