Re: [Mailman-Users] Permission Denied Error after List Migration

2014-08-14 Thread Sascha Rissel
Mark,

many thanks for your detailed explanation!
After Stephen's hint to use check_perms, I performed the migration on a
second list, and it went through fine. :-)

Kind regards,
Sascha.


2014-08-09 2:56 GMT+02:00 Mark Sapiro m...@msapiro.net:

 On 08/06/2014 01:39 PM, Sascha Rissel wrote:
  Thanks, in fact I didn't think of that!
 
  Meanwhile I created the list on the target server anew, using newlist
  command.
  Afterwards I exported members and config from the old server and imported
  it into the new server's list:
  list_members -o regular.lst -r list name
  list_members -o digest.lst -d list name
  config_list -o config.cfg list name
 
  add_members -r regular.lst list name
  add_members -d digest.lst list name
  config_list -i config.cfg list name


 This works, but you lose any non-default member options and member
 passwords. It is easier and more complete to just move the
 lists/list_name/config.pck from the old server to the new.


  Lastly I imported the archive via
  /var/lib/mailman/bin/arch list name


 This is good.


  Am I right, that this is also a proper way to migrate a list?


 It works subject to the losses mentioned above.

 --
 Mark Sapiro m...@msapiro.netThe highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan
 --
 Mailman-Users mailing list Mailman-Users@python.org
 https://mail.python.org/mailman/listinfo/mailman-users
 Mailman FAQ: http://wiki.list.org/x/AgA3
 Security Policy: http://wiki.list.org/x/QIA9
 Searchable Archives:
 http://www.mail-archive.com/mailman-users%40python.org/
 Unsubscribe:
 https://mail.python.org/mailman/options/mailman-users/mailman%40rissel.it

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied Error after List Migration

2014-08-08 Thread Mark Sapiro
On 08/06/2014 01:39 PM, Sascha Rissel wrote:
 Thanks, in fact I didn't think of that!
 
 Meanwhile I created the list on the target server anew, using newlist
 command.
 Afterwards I exported members and config from the old server and imported
 it into the new server's list:
 list_members -o regular.lst -r list name
 list_members -o digest.lst -d list name
 config_list -o config.cfg list name
 
 add_members -r regular.lst list name
 add_members -d digest.lst list name
 config_list -i config.cfg list name


This works, but you lose any non-default member options and member
passwords. It is easier and more complete to just move the
lists/list_name/config.pck from the old server to the new.


 Lastly I imported the archive via
 /var/lib/mailman/bin/arch list name


This is good.


 Am I right, that this is also a proper way to migrate a list?


It works subject to the losses mentioned above.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied Error after List Migration

2014-08-07 Thread Stephen J. Turnbull
Sascha Rissel writes:

  Thanks, in fact I didn't think of that!
  
  Meanwhile I created the list on the target server anew, using newlist
  command.
  Afterwards I exported members and config from the old server and imported
  it into the new server's list:
   list_members -o regular.lst -r list name
   list_members -o digest.lst -d list name
   config_list -o config.cfg list name
  
   add_members -r regular.lst list name
   add_members -d digest.lst list name
   config_list -i config.cfg list name
  
  Lastly I imported the archive via
   /var/lib/mailman/bin/arch list name

I believe this works correctly (I assume that when importing the
archive you copied the mbox file to the right place).

If everything seems to be working without permissions problems then
you should be OK.

This is really not something I'm terribly expert in.  However, Mark
Sapiro is on vacation so I did my best.  I think he'll be back in a
week or two and you can get more help from him (or perhaps others on
this list) if something still doesn't seem right.

Regards,

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied Error after List Migration

2014-08-07 Thread Sascha Rissel
Many thanks, Stephen!


2014-08-07 8:43 GMT+02:00 Stephen J. Turnbull step...@xemacs.org:

 Sascha Rissel writes:

   Thanks, in fact I didn't think of that!
  
   Meanwhile I created the list on the target server anew, using newlist
   command.
   Afterwards I exported members and config from the old server and
 imported
   it into the new server's list:
list_members -o regular.lst -r list name
list_members -o digest.lst -d list name
config_list -o config.cfg list name
  
add_members -r regular.lst list name
add_members -d digest.lst list name
config_list -i config.cfg list name
  
   Lastly I imported the archive via
/var/lib/mailman/bin/arch list name

 I believe this works correctly (I assume that when importing the
 archive you copied the mbox file to the right place).

 If everything seems to be working without permissions problems then
 you should be OK.

 This is really not something I'm terribly expert in.  However, Mark
 Sapiro is on vacation so I did my best.  I think he'll be back in a
 week or two and you can get more help from him (or perhaps others on
 this list) if something still doesn't seem right.

 Regards,


--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Permission Denied Error after List Migration

2014-08-06 Thread Sascha Rissel
Hello,

I just tried migrating a list from an old to a new server.
Basically I copied /var/lib/mailman/lists/listname and copied the private
archive as well.
Afterwards I
- regenerated the archives using /var/lib/mailman/bin/arch [listname] and
- fixed the urls with withlist -l -r fix_url [listname]

When trying to login into the admin panel, I get Bug in Mailman version
2.1.15 and in the logs there are the log entries found below:
(N.B: All file permissions are set according to my previous server's, but I
also tried: chown -R list.list /var/lib/mailman/lists/

Can you help me?

Regards,
Sascha.

 Aug 05 19:53:33 2014 (21848) Failed config.pck write, retaining old state.
 [Errno 13] Permission denied:
'/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848'
 Aug 05 19:53:33 2014 admin(21848):

 admin(21848): [- Mailman Version: 2.1.15 -]
 admin(21848): [- Traceback --]
 admin(21848): Traceback (most recent call last):
 admin(21848):   File /var/lib/mailman/scripts/driver, line 112, in
run_main
 admin(21848): main()
 admin(21848):   File /var/lib/mailman/Mailman/Cgi/admin.py, line 227,
in main
 admin(21848): mlist.Save()
 admin(21848):   File /var/lib/mailman/Mailman/MailList.py, line 573, in
Save
 admin(21848): self.__save(dict)
 admin(21848):   File /var/lib/mailman/Mailman/MailList.py, line 528, in
__save
 admin(21848): fp = open(fname_tmp, 'w')
 admin(21848): IOError: [Errno 13] Permission denied:
'/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848'
 admin(21848): [- Python Information -]
 admin(21848): sys.version =   2.7.3 (default, Mar 13 2014, 11:03:55)
 [GCC 4.7.2]
 admin(21848): sys.executable  =   /usr/bin/python
 admin(21848): sys.prefix  =   /usr
 admin(21848): sys.exec_prefix =   /usr
 admin(21848): sys.path=   ['/var/lib/mailman/pythonlib',
'/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman',
'/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
 admin(21848): sys.platform=   linux2
 admin(21848): [- Environment Variables -]
 admin(21848): HTTP_COOKIE:
 admin(21848): SERVER_SOFTWARE: Apache
 admin(21848): SCRIPT_NAME: /mailman/admin
 admin(21848): SERVER_SIGNATURE: addressApache Server at
lists.euve51864.serverprofi24.de Port 80/address
 admin(21848):
 admin(21848): REQUEST_METHOD: GET
 admin(21848): PATH_INFO: /rcworms-ah
 admin(21848): SERVER_PROTOCOL: HTTP/1.1
 admin(21848): QUERY_STRING: adminpw=AH_MAILAdmin
 admin(21848): HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64;
rv:31.0) Gecko/20100101 Firefox/31.0
 admin(21848): HTTP_CONNECTION: keep-alive
 admin(21848): SERVER_NAME: lists.euve51864.serverprofi24.de
 admin(21848): REMOTE_ADDR: 95.88.111.84
 admin(21848): PATH_TRANSLATED:
/var/www/vhosts/default/htdocs/rcworms-ah
 admin(21848): SERVER_PORT: 80
 admin(21848): SERVER_ADDR: 62.75.175.182
 admin(21848): DOCUMENT_ROOT: /var/www/vhosts/default/htdocs
 admin(21848): PYTHONPATH: /var/lib/mailman
 admin(21848): SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/admin
 admin(21848): SERVER_ADMIN: webmas...@rc-worms.de
 admin(21848): HTTP_DNT: 1
 admin(21848): HTTP_HOST: lists.euve51864.serverprofi24.de
 admin(21848): REQUEST_URI:
/mailman/admin/rcworms-ah?adminpw=AH_MAILAdmin
 admin(21848): HTTP_ACCEPT:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 admin(21848): GATEWAY_INTERFACE: CGI/1.1
 admin(21848): REMOTE_PORT: 50425
 admin(21848): HTTP_ACCEPT_LANGUAGE:
de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
 admin(21848): HTTP_ACCEPT_ENCODING: gzip, deflate
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Permission Denied Error after List Migration

2014-08-06 Thread Stephen J. Turnbull
Sascha Rissel writes:

  (N.B: All file permissions are set according to my previous server's, but I
  also tried: chown -R list.list /var/lib/mailman/lists/

Try running the bin/check_perms script (or maybe it's checkperms).
The wrapper scripts may have a different idea from you about file
owners etc.
  
  Can you help me?
  
  Regards,
  Sascha.
  
   Aug 05 19:53:33 2014 (21848) Failed config.pck write, retaining old state.
   [Errno 13] Permission denied:
  '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848'
   Aug 05 19:53:33 2014 admin(21848):
  
   admin(21848): [- Mailman Version: 2.1.15 -]
   admin(21848): [- Traceback --]
   admin(21848): Traceback (most recent call last):
   admin(21848):   File /var/lib/mailman/scripts/driver, line 112, in
  run_main
   admin(21848): main()
   admin(21848):   File /var/lib/mailman/Mailman/Cgi/admin.py, line 227,
  in main
   admin(21848): mlist.Save()
   admin(21848):   File /var/lib/mailman/Mailman/MailList.py, line 573, in
  Save
   admin(21848): self.__save(dict)
   admin(21848):   File /var/lib/mailman/Mailman/MailList.py, line 528, in
  __save
   admin(21848): fp = open(fname_tmp, 'w')
   admin(21848): IOError: [Errno 13] Permission denied:
  '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848'
   admin(21848): [- Python Information -]
   admin(21848): sys.version =   2.7.3 (default, Mar 13 2014, 11:03:55)
   [GCC 4.7.2]
   admin(21848): sys.executable  =   /usr/bin/python
   admin(21848): sys.prefix  =   /usr
   admin(21848): sys.exec_prefix =   /usr
   admin(21848): sys.path=   ['/var/lib/mailman/pythonlib',
  '/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman',
  '/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2',
  '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
  '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
   admin(21848): sys.platform=   linux2
   admin(21848): [- Environment Variables -]
   admin(21848): HTTP_COOKIE:
   admin(21848): SERVER_SOFTWARE: Apache
   admin(21848): SCRIPT_NAME: /mailman/admin
   admin(21848): SERVER_SIGNATURE: addressApache Server at
  lists.euve51864.serverprofi24.de Port 80/address
   admin(21848):
   admin(21848): REQUEST_METHOD: GET
   admin(21848): PATH_INFO: /rcworms-ah
   admin(21848): SERVER_PROTOCOL: HTTP/1.1
   admin(21848): QUERY_STRING: adminpw=AH_MAILAdmin
   admin(21848): HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64;
  rv:31.0) Gecko/20100101 Firefox/31.0
   admin(21848): HTTP_CONNECTION: keep-alive
   admin(21848): SERVER_NAME: lists.euve51864.serverprofi24.de
   admin(21848): REMOTE_ADDR: 95.88.111.84
   admin(21848): PATH_TRANSLATED:
  /var/www/vhosts/default/htdocs/rcworms-ah
   admin(21848): SERVER_PORT: 80
   admin(21848): SERVER_ADDR: 62.75.175.182
   admin(21848): DOCUMENT_ROOT: /var/www/vhosts/default/htdocs
   admin(21848): PYTHONPATH: /var/lib/mailman
   admin(21848): SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/admin
   admin(21848): SERVER_ADMIN: webmas...@rc-worms.de
   admin(21848): HTTP_DNT: 1
   admin(21848): HTTP_HOST: lists.euve51864.serverprofi24.de
   admin(21848): REQUEST_URI:
  /mailman/admin/rcworms-ah?adminpw=AH_MAILAdmin
   admin(21848): HTTP_ACCEPT:
  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
   admin(21848): GATEWAY_INTERFACE: CGI/1.1
   admin(21848): REMOTE_PORT: 50425
   admin(21848): HTTP_ACCEPT_LANGUAGE:
  de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
   admin(21848): HTTP_ACCEPT_ENCODING: gzip, deflate
  --
  Mailman-Users mailing list Mailman-Users@python.org
  https://mail.python.org/mailman/listinfo/mailman-users
  Mailman FAQ: http://wiki.list.org/x/AgA3
  Security Policy: http://wiki.list.org/x/QIA9
  Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
  Unsubscribe: 
  https://mail.python.org/mailman/options/mailman-users/stephen%40xemacs.org
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied Error after List Migration

2014-08-06 Thread Sascha Rissel
Thanks, in fact I didn't think of that!

Meanwhile I created the list on the target server anew, using newlist
command.
Afterwards I exported members and config from the old server and imported
it into the new server's list:
 list_members -o regular.lst -r list name
 list_members -o digest.lst -d list name
 config_list -o config.cfg list name

 add_members -r regular.lst list name
 add_members -d digest.lst list name
 config_list -i config.cfg list name

Lastly I imported the archive via
 /var/lib/mailman/bin/arch list name

Am I right, that this is also a proper way to migrate a list?


2014-08-06 8:38 GMT+02:00 Stephen J. Turnbull turnb...@sk.tsukuba.ac.jp:

 Sascha Rissel writes:

   (N.B: All file permissions are set according to my previous server's,
 but I
   also tried: chown -R list.list /var/lib/mailman/lists/

 Try running the bin/check_perms script (or maybe it's checkperms).
 The wrapper scripts may have a different idea from you about file
 owners etc.
  
   Can you help me?
  
   Regards,
   Sascha.
  
Aug 05 19:53:33 2014 (21848) Failed config.pck write, retaining old
 state.
[Errno 13] Permission denied:
  
 '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848'
Aug 05 19:53:33 2014 admin(21848):
   
admin(21848): [- Mailman Version: 2.1.15 -]
admin(21848): [- Traceback --]
admin(21848): Traceback (most recent call last):
admin(21848):   File /var/lib/mailman/scripts/driver, line 112, in
   run_main
admin(21848): main()
admin(21848):   File /var/lib/mailman/Mailman/Cgi/admin.py, line
 227,
   in main
admin(21848): mlist.Save()
admin(21848):   File /var/lib/mailman/Mailman/MailList.py, line
 573, in
   Save
admin(21848): self.__save(dict)
admin(21848):   File /var/lib/mailman/Mailman/MailList.py, line
 528, in
   __save
admin(21848): fp = open(fname_tmp, 'w')
admin(21848): IOError: [Errno 13] Permission denied:
  
 '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848'
admin(21848): [- Python Information -]
admin(21848): sys.version =   2.7.3 (default, Mar 13 2014,
 11:03:55)
[GCC 4.7.2]
admin(21848): sys.executable  =   /usr/bin/python
admin(21848): sys.prefix  =   /usr
admin(21848): sys.exec_prefix =   /usr
admin(21848): sys.path=   ['/var/lib/mailman/pythonlib',
   '/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman',
   '/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2',
   '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
   '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
admin(21848): sys.platform=   linux2
admin(21848): [- Environment Variables -]
admin(21848): HTTP_COOKIE:
admin(21848): SERVER_SOFTWARE: Apache
admin(21848): SCRIPT_NAME: /mailman/admin
admin(21848): SERVER_SIGNATURE: addressApache Server at
   lists.euve51864.serverprofi24.de Port 80/address
admin(21848):
admin(21848): REQUEST_METHOD: GET
admin(21848): PATH_INFO: /rcworms-ah
admin(21848): SERVER_PROTOCOL: HTTP/1.1
admin(21848): QUERY_STRING: adminpw=AH_MAILAdmin
admin(21848): HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64;
   rv:31.0) Gecko/20100101 Firefox/31.0
admin(21848): HTTP_CONNECTION: keep-alive
admin(21848): SERVER_NAME: lists.euve51864.serverprofi24.de
admin(21848): REMOTE_ADDR: 95.88.111.84
admin(21848): PATH_TRANSLATED:
   /var/www/vhosts/default/htdocs/rcworms-ah
admin(21848): SERVER_PORT: 80
admin(21848): SERVER_ADDR: 62.75.175.182
admin(21848): DOCUMENT_ROOT: /var/www/vhosts/default/htdocs
admin(21848): PYTHONPATH: /var/lib/mailman
admin(21848): SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/admin
admin(21848): SERVER_ADMIN: webmas...@rc-worms.de
admin(21848): HTTP_DNT: 1
admin(21848): HTTP_HOST: lists.euve51864.serverprofi24.de
admin(21848): REQUEST_URI:
   /mailman/admin/rcworms-ah?adminpw=AH_MAILAdmin
admin(21848): HTTP_ACCEPT:
   text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
admin(21848): GATEWAY_INTERFACE: CGI/1.1
admin(21848): REMOTE_PORT: 50425
admin(21848): HTTP_ACCEPT_LANGUAGE:
   de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
admin(21848): HTTP_ACCEPT_ENCODING: gzip, deflate
   --
   Mailman-Users mailing list Mailman-Users@python.org
   https://mail.python.org/mailman/listinfo/mailman-users
   Mailman FAQ: http://wiki.list.org/x/AgA3
   Security Policy: http://wiki.list.org/x/QIA9
   Searchable Archives:
 http://www.mail-archive.com/mailman-users%40python.org/
   Unsubscribe:
 https://mail.python.org/mailman/options/mailman-users/stephen%40xemacs.org

--

Re: [Mailman-Users] permission denied error

2009-07-24 Thread Mark Sapiro
LuKreme wrote:

On 23-Jul-2009, at 22:12, Mark Sapiro wrote:

 My 23-Jul-2009, at 16:58 (-0600) post (and this one too) was sent to
 the list only. The post archived at the above link was addressed to
 you and to the list. The copy to you was accepted by your MX
 (mail.covisp.net). Perhaps you are filtering mail from me?

Not specifically, but mail to my list address that is not to a list  
goes into a quarantine that I look at only on rare occasions. I never  
saw the copy sent to the list though. The one directly to me is in the  
quarantine and I pulled it out after seeing your second reply.


If you are an explicit addressee of a list post, you won't get a copy
from the list unless you set your Avoid duplicate copies of
messages? list option to No which would seem to be a good idea in
this case.


Hmm.. I think I might have found the problem, there was a crontab for  
'nobody' that had the various mailman tasks in it. Mailman runs as the  
user mailman, not nobody. See if that eliminates the issue.


I considered asking you about that, but you seemed to say that
commenting the gate_news entry in the mailman user's crontab stopped
the gate_news errors which would imply they were coming from the
mailman user's crontab.

Note also that crond is probably mailing error reports to 'mailman' or
maybe to 'nobody' if it is that crontab. It is good to arrange for
that mail to be deliverable. In some cases that mail is treated as a
post to the 'mailman' list and is then discarded as a non-member post
and never seen. For various reasons, it can be good to have the
mailman list accept non-member posts (and have only one or a few site
admins as members).

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error

2009-07-23 Thread LuKreme

On Jul 22, 2009, at 8:02, LuKreme krem...@kreme.com wrote:

IOError: [Errno 13] Permission denied: '/usr/local/mailman/lists/ 
mailman/config.pck'


all the config.pck files have the same permissions though:

10 -rw-rw  1 mailman  mailman  8556 Jul 21 12:00 list1/config.pck
8 -rw-rw  1 mailman  mailman  7825 Mar 11 12:00 list1/ 
config.pck.corrupt
10 -rw-rw  1 mailman  mailman  8556 Jul 21 09:00 list1/ 
config.pck.last
8 -rw-rw  1 mailman  mailman  7825 Mar 11 12:10 list1/ 
config.pck.safety

10 -rw-rw  1 mailman  mailman  9678 Jul 21 12:00 list2/config.pck
10 -rw-rw  1 mailman  mailman  9678 Jul 21 09:00 list2/ 
config.pck.last

4 -rw-rw  1 mailman  mailman  3640 Jul 21 12:00 mailman/config.pck
4 -rw-rw  1 mailman  mailman  3640 Mar 11 12:00 mailman/ 
config.pck.corrupt
4 -rw-rw  1 mailman  mailman  3640 Jul 21 09:00 mailman/ 
config.pck.last
4 -rw-rw  1 mailman  mailman  3640 Mar 11 12:07 mailman/ 
config.pck.safety


$ bin/check_perms -f
No problems found


No one has any solutions?

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error

2009-07-23 Thread Mark Sapiro
LuKreme krem...@kreme.com wrote:

No one has any solutions?


See my reply at
http://mail.python.org/pipermail/mailman-users/2009-July/066577.html
and provide the information I ask for, and we might be able to help.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error

2009-07-23 Thread LuKreme

On 23-Jul-2009, at 16:58, Mark Sapiro wrote:

LuKreme krem...@kreme.com wrote:


No one has any solutions?


See my reply at
http://mail.python.org/pipermail/mailman-users/2009-July/066577.html
and provide the information I ask for, and we might be able to help.


Sorry, I never saw that post, it's not in my mail queue. I am getting  
these error as system mailing warnings from cron:


Traceback (most recent call last):
 File /usr/local/mailman/cron/gate_news, line 284, in module
   main()
 File /usr/local/mailman/cron/gate_news, line 264, in main
   process_lists(lock)
 File /usr/local/mailman/cron/gate_news, line 199, in process_lists
   mlist = MailList.MailList(listname, lock=0)
 File /usr/local/mailman/Mailman/MailList.py, line 130, in __init__
   self.Load()
 File /usr/local/mailman/Mailman/MailList.py, line 629, in Load
   dict, e = self.__load(file)
 File /usr/local/mailman/Mailman/MailList.py, line 595, in __load
   fp = open(dbfile)
IOError: [Errno 13] Permission denied: '/usr/local/mailman/lists/ 
mailman/config.pck'


I get these emails ever 5 minutes.

Mail sent to the mailing list still goes out.

For now I've simply commented out the crontab line for the mailman user:

#0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/python2.4 - 
S /usr/local/mailman/cron/gate_news


(which should be */5 * * * * anyway, no?)

but I don't know that that's a solution?

--
You too will get old. And when you do you'll fantasize that when
you were young prices where reasonable, politicians were noble,
and children respected their elders. Respect your elders.

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error

2009-07-23 Thread Mark Sapiro
LuKreme wrote:

On 23-Jul-2009, at 16:58, Mark Sapiro wrote:
 LuKreme krem...@kreme.com wrote:

 No one has any solutions?

 See my reply at
 http://mail.python.org/pipermail/mailman-users/2009-July/066577.html
 and provide the information I ask for, and we might be able to help.

Sorry, I never saw that post, it's not in my mail queue.


My 23-Jul-2009, at 16:58 (-0600) post (and this one too) was sent to
the list only. The post archived at the above link was addressed to
you and to the list. The copy to you was accepted by your MX
(mail.covisp.net). Perhaps you are filtering mail from me?

I am getting  
these error as system mailing warnings from cron:
Traceback (most recent call last):
  File /usr/local/mailman/cron/gate_news, line 284, in module
main()
  File /usr/local/mailman/cron/gate_news, line 264, in main
process_lists(lock)
  File /usr/local/mailman/cron/gate_news, line 199, in process_lists
mlist = MailList.MailList(listname, lock=0)
  File /usr/local/mailman/Mailman/MailList.py, line 130, in __init__
self.Load()
  File /usr/local/mailman/Mailman/MailList.py, line 629, in Load
dict, e = self.__load(file)
  File /usr/local/mailman/Mailman/MailList.py, line 595, in __load
fp = open(dbfile)
IOError: [Errno 13] Permission denied: '/usr/local/mailman/lists/ 
mailman/config.pck'

I get these emails ever 5 minutes.

Mail sent to the mailing list still goes out.


Do Mailman's other cron jobs run without error?

Could this be a SELinux or other security manager issue?

What are the permissions on the /usr/local/mailman/lists/mailman/
directory?


For now I've simply commented out the crontab line for the mailman user:

#0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/python2.4 - 
S /usr/local/mailman/cron/gate_news

(which should be */5 * * * * anyway, no?)


I don't think all cron daemons support the /n notation which is why we
use the V7 standard notation.


but I don't know that that's a solution?


It's a satisfactory avoidance if you don't actually have any lists
gating from usenet, and it's a reasonable 'efficiency' as well in that
circumstance, but there is some underlying issue that should be
addressed.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error

2009-07-23 Thread LuKreme

On 23-Jul-2009, at 22:12, Mark Sapiro wrote:

LuKreme wrote:
On 23-Jul-2009, at 16:58, Mark Sapiro wrote:

LuKreme krem...@kreme.com wrote:


No one has any solutions?


See my reply at
http://mail.python.org/pipermail/mailman-users/2009-July/066577.html 


and provide the information I ask for, and we might be able to help.


Sorry, I never saw that post, it's not in my mail queue.


My 23-Jul-2009, at 16:58 (-0600) post (and this one too) was sent to
the list only. The post archived at the above link was addressed to
you and to the list. The copy to you was accepted by your MX
(mail.covisp.net). Perhaps you are filtering mail from me?


Not specifically, but mail to my list address that is not to a list  
goes into a quarantine that I look at only on rare occasions. I never  
saw the copy sent to the list though. The one directly to me is in the  
quarantine and I pulled it out after seeing your second reply.



Do Mailman's other cron jobs run without error?


I thought so, but it looks like they all are (this is the only one  
ever 5 minutes, so it overwhelmed the others)



Could this be a SELinux or other security manager issue?


FreeBSD 6.2-RELEASE with no weird chroot stuff.


What are the permissions on the /usr/local/mailman/lists/mailman/
directory?


2 drwxrwsr-x  21 mailman  mailman


It's a satisfactory avoidance if you don't actually have any lists
gating from usenet, and it's a reasonable 'efficiency' as well in that
circumstance, but there is some underlying issue that should be
addressed.


I'm still looking into it.  I suspect this has something to do with a  
portupgrade as the errors started about the time I was doing a lot of  
updates.


Hmm.. I think I might have found the problem, there was a crontab for  
'nobody' that had the various mailman tasks in it. Mailman runs as the  
user mailman, not nobody. See if that eliminates the issue.


--
Personal isn't the same as important

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] permission denied error

2009-07-22 Thread LuKreme
IOError: [Errno 13] Permission denied: '/usr/local/mailman/lists/ 
mailman/config.pck'


all the config.pck files have the same permissions though:

10 -rw-rw  1 mailman  mailman  8556 Jul 21 12:00 list1/config.pck
 8 -rw-rw  1 mailman  mailman  7825 Mar 11 12:00 list1/ 
config.pck.corrupt
10 -rw-rw  1 mailman  mailman  8556 Jul 21 09:00 list1/ 
config.pck.last
 8 -rw-rw  1 mailman  mailman  7825 Mar 11 12:10 list1/ 
config.pck.safety

10 -rw-rw  1 mailman  mailman  9678 Jul 21 12:00 list2/config.pck
10 -rw-rw  1 mailman  mailman  9678 Jul 21 09:00 list2/ 
config.pck.last

 4 -rw-rw  1 mailman  mailman  3640 Jul 21 12:00 mailman/config.pck
 4 -rw-rw  1 mailman  mailman  3640 Mar 11 12:00 mailman/ 
config.pck.corrupt
 4 -rw-rw  1 mailman  mailman  3640 Jul 21 09:00 mailman/ 
config.pck.last
 4 -rw-rw  1 mailman  mailman  3640 Mar 11 12:07 mailman/ 
config.pck.safety


$ bin/check_perms -f
No problems found

--
I think it's the duty of the comedian to find out where the line is
drawn and cross it deliberately.

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error

2009-07-22 Thread Mark Sapiro
LuKreme wrote:

IOError: [Errno 13] Permission denied: '/usr/local/mailman/lists/ 
mailman/config.pck'

all the config.pck files have the same permissions though:


What process encountered this error? If there was a traceback, what was
it? Were you running a command line script as a non-root user not in
Mailman's group?

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-04 Thread dylan lim
Mayb this will make it clearer. Postfix is installed using yum install
postfix.
While mailman is compiled from source with the following options:

./configure --with-mail-gid=postfix --with-cgi-gid=apache

However, I keep encountering errors where postfix is unable to execute the
wrapper for /usr/local/mailman/mail/mailman

The errors on my maillog are here:

fatal: execvp /usr/local/mailman/mail/mailman : Permission denied

Can anyone point me in the right direction? Posting to postfix doesnt seem
to yield any remedies. Thanks


On 1/4/06, Mark Sapiro [EMAIL PROTECTED] wrote:

 dylan lim wrote:
 
 This is what I have done:
 
 I cd into my /usr/local/mailman directory.
 Did a
 
 chown mailman.mailman scripts
 chown mailman.mailman /usr/local/mailman/mail/mailman
 chmod 2755 scripts


 Actually, the scripts directory should be 2775. The wrappers that
 should be 2755 are /usr/local/mailman/mail/mailman and
 /usr/local/mailman/cgi-bin/*, but the cgi-bin/* wrappers are probably
 OK if the web interface works.


 chmod 2755 /usr/local/mailman/mail/mailman
 
 But I still got the same error.


 At this point, run

 bin/check_perms -f

 as root until you get no errors. That should fix most permissions. Then
 if Postfix still can't execute the /usr/local/mailman/mail/mailman
 wrapper for no permission (with status 1), and you can't figure out
 why, you might try asking on a Postfix group or list.

 --
 Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-04 Thread Mark Sapiro
dylan lim wrote:

Mayb this will make it clearer. Postfix is installed using yum install
postfix.
While mailman is compiled from source with the following options:

./configure --with-mail-gid=postfix --with-cgi-gid=apache


The --with-mail-gid=postfix doesn't come into play yet, because you
aren't getting that far. This causes the
/usr/local/mailman/mail/mailman wrapper to check that it was invoked
from the postfix group to prevent just anyone from running it. In your
case it isn't being executed because the OS is saying postfix doesn't
have permission to run it.


However, I keep encountering errors where postfix is unable to execute the
wrapper for /usr/local/mailman/mail/mailman

The errors on my maillog are here:

fatal: execvp /usr/local/mailman/mail/mailman : Permission denied

Can anyone point me in the right direction? Posting to postfix doesnt seem
to yield any remedies. Thanks


What happens if you log in as the postfix user/group (or su to the
postfix user/group) and try to run the wrapper?

/usr/local/mailman/mail/mailman

should produce

Usage: /usr/local/mailman/mail/mailman program [args...]

or something similar? If you get permission denied, you have to solve
that. If you don't, you have to figure out what is different between
your doing it and Postfix's doing it.


BTW, I believe that Postfix will try to execute the wrapper as the
user/group that owns the aliases.db file that contains the mailman
aliases. This may not be consistent with your --with-mail-gid=postfix
configure option.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-03 Thread Mark Sapiro
dylan lim wrote:

I have set up Postfix+Mailman+htdig on a box and upon sending mails to the
mailing list I have encountered an error of

fatal: execvp /usr/local/mailman/mail/mailman: Permission denied

in my maillog. On my email client, I received a notification that
/usr/local/mailman/mail/mailman post has failed with an error of 1. Can
anyone point me in the right direction? Thank you.

Postfix is unable to pipe mail to the wrapper
(/usr/local/mailman/mail/mailman) because it doesn't have permission
to execute it. Permissions should be 2755 and group 'mailman' on all
wrappers.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-03 Thread dylan lim
This is what I have done:

I cd into my /usr/local/mailman directory.
Did a

chown mailman.mailman scripts
chown mailman.mailman /usr/local/mailman/mail/mailman
chmod 2755 scripts
chmod 2755 /usr/local/mailman/mail/mailman

But I still got the same error.

On 1/4/06, Mark Sapiro [EMAIL PROTECTED] wrote:

 dylan lim wrote:
 
 I have set up Postfix+Mailman+htdig on a box and upon sending mails to
 the
 mailing list I have encountered an error of
 
 fatal: execvp /usr/local/mailman/mail/mailman: Permission denied
 
 in my maillog. On my email client, I received a notification that
 /usr/local/mailman/mail/mailman post has failed with an error of 1. Can
 anyone point me in the right direction? Thank you.

 Postfix is unable to pipe mail to the wrapper
 (/usr/local/mailman/mail/mailman) because it doesn't have permission
 to execute it. Permissions should be 2755 and group 'mailman' on all
 wrappers.

 --
 Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-03 Thread Mark Sapiro
dylan lim wrote:

This is what I have done:

I cd into my /usr/local/mailman directory.
Did a

chown mailman.mailman scripts
chown mailman.mailman /usr/local/mailman/mail/mailman
chmod 2755 scripts


Actually, the scripts directory should be 2775. The wrappers that
should be 2755 are /usr/local/mailman/mail/mailman and
/usr/local/mailman/cgi-bin/*, but the cgi-bin/* wrappers are probably
OK if the web interface works.


chmod 2755 /usr/local/mailman/mail/mailman

But I still got the same error.


At this point, run

bin/check_perms -f

as root until you get no errors. That should fix most permissions. Then
if Postfix still can't execute the /usr/local/mailman/mail/mailman
wrapper for no permission (with status 1), and you can't figure out
why, you might try asking on a Postfix group or list.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp