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

Robert Kudyba rkudyba at fordham.edu
Wed Jul 24 13:44:50 EDT 2019

>> My partial workaround so far has been to:
>> chmod 666 /var/lib/mailman/lists/*/config.pck
>> chattr +i /var/lib/mailman/lists/*/config.pck
> chattr +i is certainly wrong. From `man chattr`
>>       A file with the `i' attribute cannot be modified: it cannot be  deleted
>>       or  renamed,  no  link  can  be created to this file and no data can be
>>       written to the file.  Only the superuser or a  process  possessing  the
>>       CAP_LINUX_IMMUTABLE capability can set or clear this attribute.
> what does lsattr show for these files?

Sorry I meant that I ran the chatter + I command as a work around; I made the files immutable as I believe some cron job keeps changing the permissions to the point we get the error:
Bug in Mailman version 2.1.29

We're sorry, we hit a bug!

So no when trying to log in to the ~/mailman/admindb/mailman admin page I get the below error, notice it’s a different permission problem:

Jul 24 13:41:51 2019 admin(5113): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
admin(5113): [----- Mailman Version: 2.1.29 -----] 
admin(5113): [----- Traceback ------] 
admin(5113): Traceback (most recent call last):
admin(5113):   File "/usr/lib/mailman/scripts/driver", line 117, in run_main
admin(5113):     main()
admin(5113):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 345, in main
admin(5113):     mlist.Save()
admin(5113):   File "/usr/lib/mailman/Mailman/MailList.py", line 613, in Save
admin(5113):     self.__save(dict)
admin(5113):   File "/usr/lib/mailman/Mailman/MailList.py", line 590, in __save
admin(5113):     os.link(fname, fname_last)
admin(5113): OSError: [Errno 1] Operation not permitted
admin(5113): [----- Python Information -----] 
admin(5113): 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(5113): sys.executable  =   /usr/bin/python2 
admin(5113): sys.prefix      =   /usr 
admin(5113): sys.exec_prefix =   /usr 
admin(5113): 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'] 
admin(5113): sys.platform    =   linux2 
admin(5113): [----- Environment Variables -----] 
admin(5113):    CONTENT_LENGTH: 38 
admin(5113):    HTTPS: on 
admin(5113):    HTTP_COOKIE:  
admin(5113):    SERVER_NAME:
admin(5113):    SERVER_PROTOCOL: HTTP/1.1 
admin(5113):    PYTHONPATH: /usr/lib/mailman 
admin(5113):    REMOTE_ADDR: 
admin(5113):    REQUEST_SCHEME: https 
admin(5113):    SCRIPT_NAME: /mailman/admindb 
admin(5113):    REQUEST_METHOD: POST 
admin(5113):    SERVER_PORT: 443 
admin(5113):    HTTP_HOST:
admin(5113):    PATH_INFO: /mailman 
admin(5113):    CONTENT_TYPE: application/x-www-form-urlencoded 
admin(5113):    REMOTE_PORT: 55467 
admin(5113):    QUERY_STRING:  
admin(5113):    REQUEST_URI: /mailman/admindb/mailman 
admin(5113):    DOCUMENT_ROOT: /var/www/html 

More information about the Mailman-Users mailing list