? ? Error

User tests: Successful: Unsuccessful:

avatar dex4er
dex4er
26 Oct 2013

Joomla creates new files and directories with umask 022. It might be problematic when ie. files has following privileges after installing new plugin:

$ ls -ld plugins/system/
drwxr-xr-x 2 dexter dexter 4096 paź 27 00:53 plugins/system/admin8/
$ ls -ld plugins/system/admin8/
drwxr-xr-x 2 www-data www-data 4096 paź 27 00:53 plugins/system/admin8/
$ ls -ld plugins/system/admin8/admin8.xml
-rw-r--r-- 1 www-data www-data 830 paź 27 01:04 plugins/system/admin8/admin8.xml

It means that it is impossible to edit or even remove files from this directory.

The possible solution is to set umask 002 for Apache and Joomla, and put the user and the server in the same group (and chmod g+s for directories). After this:

$ ls -ld plugins/system/
drwxrwsr-x 2 dexter joomla 4096 paź 27 00:53 plugins/system/admin8/
$ ls -ld plugins/system/admin8/
drwxrwsr-x 2 www-data joomla 4096 paź 27 00:53 plugins/system/admin8/
$ ls -ld plugins/system/admin8/admin8.xml
-rw-rw-r-- 1 www-data joomla 830 paź 27 01:04 plugins/system/admin8/admin8.xml

Now I have rw priviliges to joomla files even if they're created by web server.

The patch allow to change the default file and directory modes.

avatar dex4er dex4er - open - 26 Oct 2013
avatar brianteeman
brianteeman - comment - 28 Oct 2013

Thanks for your contribution - At this time we are only using github as the place to submit code fixes, the actual reporting of issues and testing fixes is still taking place on Joomlacode.

Please can you:

1) Open an item on the Joomlacode tracker in the appropriate area.

CMS Bug Reports: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103

CMS Feature Requests: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8549

2) After submitting the item to the Joomlacode tracker, add a link to the Joomlacode tracker item here and make sure that you add a link to this GitHub issue or pull request on the joomlacode tracker item.

avatar zero-24
zero-24 - comment - 9 Aug 2014

@dex4er can you update this against staging? It looks realy nice here.

avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
Build .
avatar wilsonge
wilsonge - comment - 23 Dec 2014

This has come up several times over the years. And the decision made is that you shouldn't be able to set these to a different value. To be honest if you know what you're doing use the built in PHP functions for this and if you don't then it's better you don't find out what it does the hard way! Going to close this

avatar wilsonge wilsonge - close - 23 Dec 2014
avatar wilsonge wilsonge - change - 23 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-23 00:32:48

Add a Comment

Login with GitHub to post a comment