[Mailman-Users] Hangs when trying to start mailman as root

Lummoxx lummoxx at gmail.com
Tue Sep 25 19:25:52 CEST 2012


Hi, thanks for the reply.

[root at openge bin]# head mailmanctl
#! /usr/bin/python

[root at openge bin]# which python
/usr/bin/python
[root at openge bin]# /usr/bin/python
Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import grp
>>> print '%r' grp.getgrall()
  File "<stdin>", line 1
    print '%r' grp.getgrall()
                 ^
SyntaxError: invalid syntax
>>>

I know very little about advanced python.  I've only done some basic
scripting using lists.  Do you think I'm getting that error when mailmanctl
is being run by root?

Thanks!
Chris

On Tue, Sep 25, 2012 at 2:37 AM, Mark Sapiro <mark at msapiro.net> wrote:

> Lummoxx wrote:
>
> >...hangs on the line
> >groups = [x[2] for x in grp.getgrall() if mm_cfg.MAILMAN_USER in x[3]]
>
>
> It appears that the Python library function grp.getgrall() is hanging
> or looping.
>
> What happens if as root you invoke the Python command in the shebang
> line of bin/mailmanctl and then do
>
> >>> import grp
> >>> print '%r' grp.getgrall()
>
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
>
>


More information about the Mailman-Users mailing list