mailman shell commands not working

anton_latvia

Well-Known Member
PartnerNOC
May 11, 2004
410
17
168
Latvia
cPanel Access Level
Root Administrator
Customer with a regular shell tries to run "sync_members" command for mailman, but fails.

Server has mod-ruid, virtfs, although customer has regular shell enabled.

Code:
Traceback (most recent call last):
  File "/usr/local/cpanel/3rdparty/mailman/bin/list_lists", line 130, in <module>
    main()
  File "/usr/local/cpanel/3rdparty/mailman/bin/list_lists", line 100, in main
    mlist = MailList.MailList(n, lock=0)
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 130, in __init__
    self.Load()
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 668, in Load
    dict, e = self.__load(file)
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 633, in __load
    fp = open(dbfile)

IOError: [Errno 13] Permission denied: '/usr/local/cpanel/3rdparty/mailman/lists/foreldre_domain.no/config.pck'

And when I try to run the sync_members command I get the following errors:

[email protected] [~]#  /usr/local/cpanel/3rdparty/mailman/bin/sync_members -f ./test.txt trenere_domain.no
Ignore  :
Traceback (most recent call last):
  File "/usr/local/cpanel/3rdparty/mailman/bin/sync_members", line 296, in <module>
    main()
  File "/usr/local/cpanel/3rdparty/mailman/bin/sync_members", line 220, in main
    mlist = MailList.MailList(listname)
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 128, in __init__
    self.Lock()
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 161, in Lock
    self.__lock.lock(timeout)
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/LockFile.py", line 243, in lock
    self.__write()
  File "/usr/local/cpanel/3rdparty/mailman/Mailman/LockFile.py", line 422, in __write
    fp = open(self.__tmpfname, 'w')

IOError: [Errno 13] Permission denied: '/usr/local/cpanel/3rdparty/mailman/locks/trenere_domain.no.lock.web9.domain.guru.24580.0'
When I check these files - I can confirm that permissions are set, so he can not access them. Should in general regular users have access to these files and be able to write? Are there any workarounds?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Hello :)

Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
To update, testing by our analysts indicates the scripts in /usr/local/cpanel/3rdparty/mailman/bin/ aren't intended to be used by the individual accounts. Instead, they are intended for the "root" user only.

Thank you.
 
Thread starter Similar threads Forum Replies Date
V Email 7
S Email 1
M Email 1
D Email 3
J Email 7