[Mailman-Users] Check_perms bombs out.
Barry A. Warsaw
bwarsaw at cnri.reston.va.us
Tue Dec 21 06:34:37 CET 1999
>>>>> "MSL" == Maren S Leizaola <maren at leizaola.com> writes:
MSL> This is what I get when I run check perms. Mailman runs
MSL> fine...
MSL> Any clues as to how to fix this in case I do need check
MSL> perms?
It means your file has a gid that isn't in your groups database.
Here's a patch for check_perms.
-Barry
-------------------- snip snip --------------------
Index: check_perms
===================================================================
RCS file: /projects/cvsroot/mailman/bin/check_perms,v
retrieving revision 1.10
diff -c -r1.10 check_perms
*** check_perms 1999/11/26 08:51:35 1.10
--- check_perms 1999/12/21 05:32:59
***************
*** 54,62 ****
continue
raise
if gid <> MAILMAN_GID:
arg.ERRORS = arg.ERRORS + 1
print path, 'bad gid (has: %s, expected %s)' % (
! grp.getgrgid(gid)[0], MAILMAN_GRPNAME),
if STATE.FIX:
print '(fixing)'
os.chown(path, -1, MAILMAN_GID)
--- 54,66 ----
continue
raise
if gid <> MAILMAN_GID:
+ try:
+ groupname = grp.getgrgid(gid)[0]
+ except KeyError:
+ groupname = '<anon gid %d>' % gid
arg.ERRORS = arg.ERRORS + 1
print path, 'bad gid (has: %s, expected %s)' % (
! groupname, MAILMAN_GRPNAME),
if STATE.FIX:
print '(fixing)'
os.chown(path, -1, MAILMAN_GID)
More information about the Mailman-Users
mailing list