Skip to content
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

Package Manager sets permissions incorrectly #1276

Closed
Arantor opened this issue Jan 25, 2014 · 3 comments
Closed

Package Manager sets permissions incorrectly #1276

Arantor opened this issue Jan 25, 2014 · 3 comments

Comments

@Arantor
Copy link
Contributor

Arantor commented Jan 25, 2014

This is actually an amalgam of multiple reports over the years.

http://www.simplemachines.org/community/index.php?topic=472532.0
http://www.simplemachines.org/community/index.php?topic=396238.0
http://www.simplemachines.org/community/index.php?topic=372905.0
http://www.simplemachines.org/community/index.php?topic=473842.0
http://www.simplemachines.org/community/index.php?topic=501169.0
http://dev.simplemachines.org/mantis/view.php?id=4939

What's happening is that package manager tries to make things writable and this ends up causing it to make files have permissions that are too high - which hosts can rightly refuse to let run (since 775 or 777 on some hosts will call foul as they shouldn't be that high)

Solution: when working on the package manager, have a PHP file that outputs a known, set value and attempt to change its permissions and then call it to see whether it still works (whilst also checking that it is writable)

@AngelinaBelle
Copy link
Contributor

The other really weird thing was that -- on one occasion, the permission setting seemed to have extended to the parent directory of the forum directory
500 on the forum. FTP login was impossible, presumably because of lack of permission to use the ftp-login directory.

Because I am a sub-account holder of a larger account, and don't have access to the account control panel (1&1), I needed the help of the account holder to reset permission at the ftp root level so I could fix the rest of the permissions.

And I have never used pacman to set file permissions since.

@Arantor
Copy link
Contributor Author

Arantor commented Feb 9, 2014

Also related: http://dev.simplemachines.org/mantis/view.php?id=4527 where the permissions are hardcoded. Whatever packman does, the values should not be hard forced to anything but to a safe value for that configuration. Perhaps even doing that test on demand (as users may forget to re-test it after a host move)

@Kindred-999
Copy link

I believe that this is actually addressed by Suki's update to the other report
#3025

@live627 live627 closed this as completed Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants