[Mailman-Users] install problem with check_perms

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Tue Jul 13 17:03:49 CEST 1999


>>>>> "AS" == Andrew Sydelko <sydelko at csociety.purdue.edu> writes:

    AS> using mailman-1.0rc3, after a (./configure; make install) I
    AS> run check_perms.  But it gives me this error. I'm not able to
    AS> figure out exactly what it means.

Buglet in rc3.  If you've never run mmsitepass, you won't have an
adm.pw file!  Here's the patch (which includes one for older Pythons
too)...

-Barry

-------------------- snip snip --------------------
Index: check_perms
===================================================================
RCS file: /projects/cvsroot/mailman/bin/check_perms,v
retrieving revision 1.4
retrieving revision 1.5
diff -c -r1.4 -r1.5
*** check_perms	1999/07/09 23:36:38	1.4
--- check_perms	1999/07/12 20:34:25	1.5
***************
*** 49,55 ****
              print 'checking gid and modes for', path
          try:
              mode, gid = statgidmode(path)
!         except OSError, (code, msg):
              if code == errno.ENOENT:
                  continue
              raise
--- 49,55 ----
              print 'checking gid and modes for', path
          try:
              mode, gid = statgidmode(path)
!         except os.error, (code, msg):
              if code == errno.ENOENT:
                  continue
              raise
***************
*** 125,131 ****
      targetmode = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP
      if STATE.VERBOSE:
          print 'checking perms on', adminpw
!     mode = statmode(adminpw)
      if mode <> targetmode:
          STATE.ERRORS = STATE.ERRORS + 1
          print adminpw, 'permissions must be exactly 0640 (got %s)' % oct(mode)
--- 125,137 ----
      targetmode = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP
      if STATE.VERBOSE:
          print 'checking perms on', adminpw
!     try:
!         mode = statmode(adminpw)
!     except os.error, (code, msg):
!         # adm.pw may not exist
!         if code == errno.ENOENT:
!             return
!         raise
      if mode <> targetmode:
          STATE.ERRORS = STATE.ERRORS + 1
          print adminpw, 'permissions must be exactly 0640 (got %s)' % oct(mode)




More information about the Mailman-Users mailing list