Apache2 / httpd "Sharing Write Permission"
Bug #1441887 reported by
Scott Bertilson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server Guide |
Fix Released
|
Undecided
|
Doug Smythies |
Bug Description
Came across 2 documents which, I think, are suggesting an incorrect group permission setting:
1) https:/
has the following on page 197:
sudo find /var/www/html -type f -exec chmod g=rws "{}" \;
2) https:/
has the following at the end of the document:
sudo find /var/www/html -type f -exec chmod g=rws "{}" \;
I'd think that in both cases you'd not want to set the set-group-id bit on an ordinary file that isn't going to be executed.
Related branches
Changed in serverguide: | |
status: | In Progress → Fix Committed |
Changed in serverguide: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thank your for your bug report. Please note that the two references provided are compiled from the same source files.
Based on a bunch of tests I just did, the "s" does seem redundant, but not for reasons of execution. I couldn't end up with a file with my primary group name if the directory it was in has the "s" set. So yes, I believe that:
sudo find /var/www/html -type f -exec chmod g=rw "{}" \;
would be good enough.
Peter do you have an opinion?