Problem running sync_members under cpanel
![](https://secure.gravatar.com/avatar/ea48957cab83632f32e7e580278344bf.jpg?s=120&d=mm&r=g)
I'm using a hosting company that runs cpanel. CentOS 4.1, cPanel 10.2.0-S83, Mailman 2.1.5p1
I don't have access to root, but what I'm trying to do is synchronise the membership database via an uploaded text file.
This is the command that I've setup in the cron.
/usr/local/cpanel/3rdparty/mailman/bin/sync_members -w=no -g=no -a=yes -f /home/lrocorg/mailman/export-lists/test.txt test_landrover.org.za
'lrocorg' is my username on the system and 'test_landrover.org.za' is the mailman list that is assigned. The actual list name is just 'test'.
So I FTP the 'test.txt' to the respective directory under my home directory and then run the cron job.
I then get this error message;
Ignore : Traceback (most recent call last): File "/usr/local/cpanel/3rdparty/mailman/bin/sync_members", line 286, in ? 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 126, in __init__ self.Lock() File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 159, 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/test_landrover.org.za.lock.s53.tm. crucialx.net.13496.0'
Any pointers please? As I said before, I don't have root access.
Regards
Hilton J Ralphs
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005
![](https://secure.gravatar.com/avatar/e6ea3e5ffc3558c74e9f8cbf3f38357a.jpg?s=120&d=mm&r=g)
At 8:22 PM +0200 2005-07-31, Hilton wrote:
That's a file permissions problem. You need to talk to your
CPanel hosting provider.
-- Brad Knowles, <brad@stop.mail-abuse.org>
"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
SAGE member since 1995. See <http://www.sage.org/> for more info.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Brad Knowles wrote:
To elaborate, the user under which the cron is running does not have permission to create/write the lock file to lock the list. The cron probably needs to run as root or as a user in the 'mailman' group (usually 'mailman').
Also see http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.011.htp
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/e6ea3e5ffc3558c74e9f8cbf3f38357a.jpg?s=120&d=mm&r=g)
At 8:22 PM +0200 2005-07-31, Hilton wrote:
That's a file permissions problem. You need to talk to your
CPanel hosting provider.
-- Brad Knowles, <brad@stop.mail-abuse.org>
"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
SAGE member since 1995. See <http://www.sage.org/> for more info.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Brad Knowles wrote:
To elaborate, the user under which the cron is running does not have permission to create/write the lock file to lock the list. The cron probably needs to run as root or as a user in the 'mailman' group (usually 'mailman').
Also see http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.011.htp
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Brad Knowles
-
Hilton
-
Mark Sapiro