[wplug] mailman/python error under redhat 9
Jonathan S. Billings
billings at negate.org
Fri May 9 10:56:13 EDT 2003
You need a mailman group in /etc/group that mailman is a member of.
On Friday, May 9, 2003, at 10:00 AM, John Harrold wrote:
> hey.
>
> i have a friend who was trying to use mailman under redhat 9. he was
> getting the following error:
>
> ceback (most recent call last):
> File "/var/mailman/bin/mailmanctl", line 526, in ?
> main()
> File "/var/mailman/bin/mailmanctl", line 321, in main
> check_privs()
> File "/var/mailman/bin/mailmanctl", line 274, in check_privs
> gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
> KeyError: getgrnam(): name not found
>
>
>
> now if i goto line 274 in mailmanctl, it looks like this:
>
> gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
> uid = pwd.getpwnam(mm_cfg.MAILMAN_USER)[2]
>
> i can replace that with the following:
>
> gid = 41
> uid = 41
>
> where 41 is both the group and user ids, and it works fine. so it
> seems like
> python cannot find the function 'getgrnam'. can anyone tell me how to
> fix this
> other than editing mailmanctl and changing the gid and uid manually?
>
>
> --
> -----------------------------------------------------------------------
> ---
> | /"\
> john harrold | \ / ASCII ribbon
> campaign
> jmh at member.fsf.org | X against HTML mail
> the most useful idiot | / \
> -----------------------------------------------------------------------
> ---
> "Of course the people don't want war. But after all, it's the leaders
> of
> the country who determine the policy, and it's always a simple
> matter to
> drag the people along whether it's a democracy, a fascist
> dictatorship,
> or a parliament, or a communist dictatorship. Voice or no voice, the
> people can always be brought to the bidding of the leaders. That is
> easy. All you have to do is tell them they are being attacked, and
> denounce the pacifists for lack of patriotism, and exposing the
> country
> to greater danger."
> -- Herman Goering
> as related to Gustave Gilbert at the Nuremberg trials,
> -----------------------------------------------------------------------
> ---
> gpg --keyserver keys.indymedia.org --recv-key F65A739E
> -----------------------------------------------------------------------
> ---
> <mime-attachment>
More information about the wplug
mailing list