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.
Bug 1188043 - /etc/mailman has wrong permissions 0755 instead of 2775
Summary: /etc/mailman has wrong permissions 0755 instead of 2775
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: mailman
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1229307
TreeView+ depends on / blocked
 
Reported: 2015-02-01 18:08 UTC by Peter Bieringer
Modified: 2019-02-28 12:00 UTC (History)
5 users (show)

Fixed In Version: mailman-2.1.15-18.el7
Doc Type: Bug Fix
Doc Text:
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.
Clone Of:
: 1229307 (view as bug list)
Environment:
Last Closed: 2015-11-20 10:28:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter 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

Comment 7 Jan Kurik 2015-11-20 10:28:10 UTC
This bug has been closed as CURRENTRELEASE due to delivery of the fix in a z-stream. As the component is not on ACL, the fix is currently included in y-stream as well.

For more information please see the zstream process documentation:
* https://engineering.redhat.com/trac/ZStream/attachment/wiki/WikiStart/Z-Stream_process_update_4.odp .


Note You need to log in before you can comment on or make changes to this bug.