-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New installs are all set to permissions 777 #44331
Comments
Unable to replicate on a Hosting server. It only happens to me when I install on localhost on a windows OS pc. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44331. |
I can confirm this serious bug with 5.2 |
4.4.9 is fine, too. Issue is related to the build environment, not an issue with the build script. |
hmm |
doesnt matter what caused the problem - the fact is this is a serious issue that must be resolved asap @SniperSister |
The JSST is aware of the issue, plan is to ship a 5.2.1 with correct permissions. |
As far as I could see this issue affects only new installations of 5.2.0 stable. Updated installations do not have it as the updater fixes the permissions to 644 for files and 755 for folders (file extract.php). This applies to sites updated from e.g. 5.1.4 to 5.2.0 stable as well as sites updated from 5.2.0 stable to 5.2.1-dev nightly of today. So with the next update also current new installations should be fixed. This just to share the info. I do not say that it's not an issue. |
So how difficult is it to copy 5.2.0 to 5.2.1, fix the way it is packaged and present a 5.2.1 full zip with a 5.2.1 update? |
I'm not a 5.2. release manager so it's not on me. But I think you can also fix it by using the Reinstall Core Files button in the Joomla Update Component. |
I mean the "Reinstall Joomla! core files" button. It is shown in the update component after searching for updates using the "CHeck for Updates" button. It fixes permission at least for the files (but not the folders, it seems). |
it is not a simple task |
Those who have ssh access to their host can also fix it on the command line when having changed directory to their Joomla root directory:
(On certain shared hosts you might have to adjust the mode values to your needs.) |
But that doesn't fix the problem though. |
Sure, but it's a workaround for those who can do it. |
Even easier if you have Akeeba Admin Tools - just click "Fix permissions". But, like using SSH, it's not a fix, just a repair. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44331. |
Professional not core |
Closing as having a pull request. Please test #44379 . Thanks in advance. |
#44379 does not resolve this specific issue |
@brianteeman Have you checked that PR again? I have added a fix procedure to script.php last night. |
Steps to reproduce the issue
Brand new install of 5.2
Expected result
Directories 755
Files 644
Actual result
Directories and files 777
System information (as much as possible)
FPA at https://forum.joomla.org/viewtopic.php?f=834&t=1012790#p3733254
Additional comments
My web hosts replied to my query about this:
"I believe I have found the cause of the issue you are having. I am assuming you installed the Joomla files using the zip archive at /home/wwwckde/public_html/Joomla_5.2.0-Stable-Full_Package.zip. I used the zipinfo command to analyze the metadata of the files in the archive and it appears the 777 permissions are from the archive itself. For example this is the output when filtering for the README.txt file. The section "-rwxrwxrwx " is the equivalent of 777 permissions:
[wwwckde@migration public_html]$ zipinfo Joomla_5.2.0-Stable-Full_Package.zip | grep README.txt
-rwxrwxrwx 3.0 unx 5275 tx defN 24-Oct-11 07:24 README.txt
It appears that the file system is simply preserving the file permissions from the zip file. I would suggest using these commands to correct the permissions as soon as the files are extracted."
The text was updated successfully, but these errors were encountered: