[wplug] mailman/python error under redhat 9

John Harrold jmh17 at pitt.edu
Fri May 9 10:00:48 EDT 2003


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
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030509/df73cbeb/attachment-0001.bin


More information about the wplug mailing list