View Issue Details

IDProjectCategoryView StatusLast Update
0005239Composr alpha bug reports[All Projects] General / Uncategorisedpublic2023-01-15 09:33
ReporterPatrick SchmalstigAssigned ToChris Graham 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Summary0005239: fixperms: New permissions are being applied on "other", but webserver user might own the files
DescriptionThe fixperms.php tool is "fixing" bad permissions by applying them to the "others" bit (owner|group|others). However, this does not work if the files are owned by the same user as the webserver is running and the permissions for owner are borked; they need to be applied to owner in that case if the php cli has permission to do so (else, probably throw an error that it needs to run as sudo / admin).
TagsNo tags attached.
Sponsorship open

Activities

Chris Graham

2023-01-09 17:11

administrator   ~0007863

Discussed with Patrick.

This affects Linux.

The issue is User bitmask privileges take precedence over Other bitmask privileges.

i.e. 0066 permissions would not result in a writable file for the owner of that file, but would for some random other user.

That's news to us, but ok.

Patrick Schmalstig

2023-01-15 09:33

administrator   ~0007872

Also, addon registry hooks were not being checked for get_chmod_array like they should have been via fixperms.php. Also fixed.

Issue History

Date Modified Username Field Change
2023-01-09 16:44 Patrick Schmalstig New Issue
2023-01-09 16:44 Patrick Schmalstig Status non-assigned => assigned
2023-01-09 16:44 Patrick Schmalstig Assigned To => Chris Graham
2023-01-09 16:45 Patrick Schmalstig Description Updated View Revisions
2023-01-09 17:11 Chris Graham Note Added: 0007863
2023-01-15 01:25 Chris Graham Status assigned => resolved
2023-01-15 01:25 Chris Graham Resolution open => fixed
2023-01-15 09:33 Patrick Schmalstig Note Added: 0007872
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised