Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#10299 closed defect (bug) (duplicate)

auto update and install themes and plugins sets wrong permissions

Reported by: Ovidiu Owned by: dd32
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Filesystem API Keywords: install, plugin, theme, update
Focuses: Cc:


ok, I hope this is the right place.
if I update wordpress, or isntall a plugin or isntalla a theme with the built in functions, the wrong permissions are set.

i.e. I installed a new plugin, and here are its permissions:

drwx------ 3 web7 client1 4096 2009-06-27 15:40 yahoo-messenger-status-plugin

if I do a manual chown -R web7:client1 web/ and chmod -R 755 web/ all plugin updates, installations and wordpress upgrades work. AFTERWARDS of course I need to set the permissions and ownerships straight again.

Here are the file permissions:

myserver:/var/www/myblog/web/wp-content/plugins# ls -al yahoo-messenger-status-plugin/
total 204
drwx------ 3 web7 client1 4096 2009-06-27 15:40 .
drwxr-xr-x 73 web7 client1 4096 2009-06-27 15:40 ..
-rw-r--r-- 1 web7 client1 35147 2009-06-27 15:40 LICENSE.txt
-rw-r--r-- 1 web7 client1 1053 2009-06-27 15:40 readme.txt
-rw-r--r-- 1 web7 client1 89868 2009-06-27 15:40 screenshot-1.png
-rw-r--r-- 1 web7 client1 33726 2009-06-27 15:40 screenshot-2.png
drwx------ 2 web7 client1 4096 2009-06-27 15:40 status_images
-rw-r--r-- 1 web7 client1 287 2009-06-27 15:40 ym_status_control.phtml
-rw-r--r-- 1 web7 client1 2965 2009-06-27 15:40 ym_status.php
-rw-r--r-- 1 web7 client1 423 2009-06-27 15:40 YmStatus.php
-rw-r--r-- 1 web7 client1 4263 2009-06-27 15:40 ym_status_settings.phtml
-rw-r--r-- 1 web7 client1 706 2009-06-27 15:40 ym_status_widget.phtml

Now I don't know if this is just my problem, but here are more cases where doing a chmod -R 755 does help:

I also had the same problems with another plugin, where the CSS fiel couldn't be loaded dues to these restrictive permissions.

can somene check this and let me know if this is expected behaviour? Unfortunaly with these settigns I can't use the update/install functions of wordpress...

Btw. running on suPhp

Change History (1)

#1 @dd32
12 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

See #10170

Note: See TracTickets for help on using tickets.