Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Previously, the /etc/mailman file had incorrectly set permissions, which in some cases caused removing Mailman lists to fail with a "'NoneType' object has no attribute 'close'" message. With this update, the permissions value for /etc/mailman is correctly set to 2775 instead of 0755, and removing Mailman lists now works as expected.
DescriptionPeter Bieringer
2015-02-01 18:08:44 UTC
Description of problem:
/etc/mailman has wrong permissions 0755 instead of 2775
This will cause issues if e.g. deleting a list as user mailman (which should be done in this way, because otherwise, /etc/mailman/aliases has suddenly root:root (if used with postfix)
Version-Release number of selected component (if applicable):
mailman-2.1.15-17.el7.x86_64
How reproducible:
always
Steps to Reproduce:
$ /usr/lib/mailman/bin/rmlist -a Testlist7
Traceback (most recent call last):
File "/usr/lib/mailman/bin/rmlist", line 161, in <module>
main()
File "/usr/lib/mailman/bin/rmlist", line 122, in main
sys.modules[modname].remove(mlist)
File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 306, in remove
_do_remove(mlist, ALIASFILE, False)
File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 297, in _do_remove
outfp.close()
AttributeError: 'NoneType' object has no attribute 'close'
Actual results:
strace -e open shows:
open("/etc/mailman/aliases", O_RDONLY) = 3
open("/etc/mailman/aliases.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)
open("/var/lock/mailman/creator", O_RDONLY) = 3
Expected results:
working
Additional info:
workaround:
# chmod g+ws /etc/mailman/
on RHEL5 the permissions were proper:
mailman-2.1.9-6.el5_6.1
# rpm -qlv mailman |grep "etc/mailman$"
drwxrwsr-x 2 root mailman 0 Mär 30 2011 /etc/mailman
Description of problem: /etc/mailman has wrong permissions 0755 instead of 2775 This will cause issues if e.g. deleting a list as user mailman (which should be done in this way, because otherwise, /etc/mailman/aliases has suddenly root:root (if used with postfix) Version-Release number of selected component (if applicable): mailman-2.1.15-17.el7.x86_64 How reproducible: always Steps to Reproduce: $ /usr/lib/mailman/bin/rmlist -a Testlist7 Traceback (most recent call last): File "/usr/lib/mailman/bin/rmlist", line 161, in <module> main() File "/usr/lib/mailman/bin/rmlist", line 122, in main sys.modules[modname].remove(mlist) File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 306, in remove _do_remove(mlist, ALIASFILE, False) File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 297, in _do_remove outfp.close() AttributeError: 'NoneType' object has no attribute 'close' Actual results: strace -e open shows: open("/etc/mailman/aliases", O_RDONLY) = 3 open("/etc/mailman/aliases.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied) open("/var/lock/mailman/creator", O_RDONLY) = 3 Expected results: working Additional info: workaround: # chmod g+ws /etc/mailman/ on RHEL5 the permissions were proper: mailman-2.1.9-6.el5_6.1 # rpm -qlv mailman |grep "etc/mailman$" drwxrwsr-x 2 root mailman 0 Mär 30 2011 /etc/mailman