[Mailman-Users] IOError: [Errno 13] Permission denied on config.pck in Fedora 30

Robert Kudyba rkudyba at fordham.edu
Mon Jul 22 14:12:21 EDT 2019


Does mailman 2.1 now need to run as the same user as Apache runs? In our case httpd runs as the user ‘apache’ and mailman runs as ‘mailman’. I reinstalled mailman and no difference. I’ve seen this error referenced several time and to run check_perms which I did.

/usr/lib/mailman/bin/check_perms
/usr/lib/mailman/bin/mailman-update-cfg bad group (has: root, expected mailman)
Problems found: 1
Re-run as mailman (or root) with -f flag to fix
ls -l /usr/lib/mailman/bin/mailman-update-cfg
-rwxr-xr-x 1 root root 436 Feb 12 06:54 /usr/lib/mailman/bin/mailman-update-cfg
chown mailman:mailman /usr/lib/mailman/bin/mailman-update-cfg
/usr/lib/mailman/bin/check_perms
No problems found


systemctl status mailman
● mailman.service - GNU Mailing List Manager
 Loaded: loaded (/usr/lib/systemd/system/mailman.service; enabled; vendor preset: disabled)
 Active: active (running) since Thu 2019-07-18 16:18:41 EDT; 3 days ago
Main PID: 20380 (mailmanctl)
  Tasks: 9 (limit: 4915)
 Memory: 131.2M
 CGroup: /system.slice/mailman.service
         ├─20380 /usr/bin/python2 /usr/lib/mailman/bin/mailmanctl -s start
         ├─20381 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
         ├─20382 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
         ├─20383 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
         ├─20384 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
         ├─20385 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
         ├─20386 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
         ├─20387 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
         └─20388 /usr/bin/python2 /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s

Jul 18 16:18:41 dsm.dsm.fordham.edu systemd[1]: Starting GNU Mailing List Manager...
Jul 18 16:18:41 dsm.dsm.fordham.edu mailmanctl[20379]: Starting Mailman's master qrunner.
Jul 18 16:18:41 dsm.dsm.fordham.edu systemd[1]: Started GNU Mailing List Manager.


ls -l /var/lib/mailman/lists/book/
total 24
-rw-rw---- 1 mailman mailman 5593 Jul 22 09:00 config.pck
-rw-rw---- 1 mailman mailman 5593 Jul 21 12:00 config.pck.last
-rw-rw---- 1 mailman mailman  131 Oct 12  2018 pending.pck
-rw-rw---- 1 apache  mailman   20 Oct 13  2018 request.pck

ls -l  /var/log/mailman/error
-rw-rw---- 1 mailman mailman 37997 Jul 22 10:57 /var/log/mailman/error

[----- Mailman Version: 2.1.29 -----]
[----- Traceback ------]
Traceback (most recent call last):
File "/usr/lib/mailman/scripts/driver", line 85, in run_main
  immediate=1)
File "/usr/lib/mailman/Mailman/Logging/StampedLogger.py", line 52, in __init__
  Logger.__init__(self, category, nofail, immediate)
File "/usr/lib/mailman/Mailman/Logging/Logger.py", line 50, in __init__
  self.__get_f()
File "/usr/lib/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
  1)
File "/usr/lib64/python2.7/codecs.py", line 898, in open
  file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: '/var/log/mailman/error'
[----- Python Information -----]
sys.version     = 2.7.16 (default, Apr 30 2019, 15:54:43) 
[GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)]
sys.executable  = /usr/bin/python2
sys.prefix      = /usr
sys.exec_prefix = /usr
sys.path        = ['/usr/lib/mailman/pythonlib', '/usr/lib/mailman', '/usr/lib/mailman/scripts', '/usr/lib/mailman', '/usr/lib/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/dist-packages']
sys.platform    = linux2
      PYTHONPATH: /usr/lib/mailman
      REMOTE_PORT: 60557
      REQUEST_SCHEME: https
      SCRIPT_NAME: /mailman/listinfo
      REQUEST_METHOD: GET
      SERVER_PORT: 443
      SERVER_PROTOCOL: HTTP/1.1
      QUERY_STRING: 
      REQUEST_URI: /mailman/listinfo
      DOCUMENT_ROOT: /var/www/html

Then I provide 755 permissions to the log file then I see this error:

admin(24082): [----- Mailman Version: 2.1.29 -----] 
admin(24082): [----- Traceback ------] 
admin(24082): Traceback (most recent call last):
admin(24082):   File "/usr/lib/mailman/scripts/driver", line 117, in run_main
admin(24082):     main()
admin(24082):   File "/usr/lib/mailman/Mailman/Cgi/listinfo.py", line 44, in main
admin(24082):     listinfo_overview()
admin(24082):   File "/usr/lib/mailman/Mailman/Cgi/listinfo.py", line 104, in listinfo_overview
admin(24082):     mlist = MailList.MailList(name, lock=0)
admin(24082):   File "/usr/lib/mailman/Mailman/MailList.py", line 133, in __init__
admin(24082):     self.Load()
admin(24082):   File "/usr/lib/mailman/Mailman/MailList.py", line 692, in Load
admin(24082):     dict, e = self.__load(file)
admin(24082):   File "/usr/lib/mailman/Mailman/MailList.py", line 655, in __load
admin(24082):     fp = open(dbfile)
admin(24082): IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/book/config.pck'
admin(24082): [----- Python Information -----] 
admin(24082): sys.version     =   2.7.16 (default, Apr 30 2019, 15:54:43) 
[GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)] 
admin(24082): sys.executable  =   /usr/bin/python2 
admin(24082): sys.prefix      =   /usr


More information about the Mailman-Users mailing list