Closed Bug 272514 Opened 21 years ago Closed 19 years ago

make install does "chmod 755 data/", which breaks sendmail writing to that directory

Categories

(Webtools Graveyard :: Bonsai, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: reed)

References

Details

Attachments

(1 file)

Bonsai's installer sets its data/ directory read-only for group and world users, so sendmail can't write to it, breaking new checkin registration, which is done by sendmail. Or something like that, justdave knows more. This breaks anew every time we upgrade Bonsai. We should have the makefile chmod 777 data/ as a temporary fix. We should have sendmail write new mail to a different directory as a permanent fix.
Yeah, what Myk said is pretty much what's happening. Another long-term option is to create a "bonsai" user on the system, and make all of the CGIs and the mail handling code be setuid bonsai. This would be much safer overall. This is the approach that majordomo2 takes, and it works quite well. The actual .cgi files are moved to the same name with a dot in front, and a compiled-C stub is put in the original location with the setuid bit set which does nothing but execute the original cgi script.
*** Bug 187222 has been marked as a duplicate of this bug. ***
QA Contact: timeless → bonsai
Bonsai's Makefile.in is completely screwed. Patch coming up.
Attached patch patch - v1Splinter Review
So, it wasn't as screwed as I thought, but it still needed work. This should fix everything to use the proper permissions.
Assignee: tara → reed
Status: NEW → ASSIGNED
Attachment #247382 - Flags: review?(timeless)
Comment on attachment 247382 [details] [diff] [review] patch - v1 we should use more lists... cp $(SRCLIST) $(PREFIX)/data; ...
Attachment #247382 - Flags: review?(timeless) → review+
Checking in Makefile.in; /cvsroot/mozilla/webtools/bonsai/Makefile.in,v <-- Makefile.in new revision: 1.15; previous revision: 1.14 done timeless: Can you file a bug on using more lists?
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 362727
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: