WHM 11.15.0 cPanel 11.18.1-S20683
FREEBSD 6.2
I've transfered some domains to new box these days and I've faced with plenty of problems with it.
Here is what you got once going to edit any maillist
I check things to find out real reason for this problem, here is what I found:Code:Bug in Mailman version 2.1.9.cp2 We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.
1. All lists are placed into directory /usr/local/cpanel/3rdparty/mailman/lists
2. test_test.com within it has 3 files: config.pck config.pck.last request.pck
3. All of these files are owner mailman:mailman
When anyone try to modify list settings via browser (http://mail.test.com/mailman/admin/test_test.com):
1. config.pck.last is removed
2. temp file created config.pck.tmp.servername.com.12345
3. these tempfile has ownership nobody:mailman
tempfile refused to replace config.pck as it has a different owner.
And thats why mailman reply with "hit a bug".
First of all I done a quick test, by change ownership for config.pck to nobody:mailman
After that mailman error message dissapeared and I was able to modify list setting.
However I got an error once mailman cronjobs started like:
With the same creation of temp file but owned mailman:mailman.Code:Traceback (most recent call last): File "/usr/local/cpanel/3rdparty/mailman/cron/checkdbs", line 203, in <module> main() File "/usr/local/cpanel/3rdparty/mailman/cron/checkdbs", line 100, in main mlist.Save() File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 572, in Save self.__save(dict) File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 549, in __save os.link(fname, fname_last) OSError: [Errno 1] Operation not permitted
So quick test shows me that the problem IS with the ownership and it couldn't be completely removed by simple ownership change.
/usr/local/cpanel/3rdparty/mailman/cgi-bin/admin is the program serving my http request and it has ( as almost all there ) setgid bit setuped.
I'll have no errors for both http and cron in case I set the setuid bit there,
However I'm not quite sure that it won't lead to security problems out of there.
Old server with old OS (FreeBSD 4.11) and relatively old Cpanel release (S18473) has no such issue with mailman. But I didn't "play with easy_apache" there, maybe that is the case?


LinkBack URL
About LinkBacks
Reply With Quote