[Mailman-Users] unknown mailer error 2

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Fri Aug 13 17:54:49 CEST 1999


>>>>> "blurr" ==   <blurr at txraves.org> writes:

    blurr> yep, i tried that and it found(and fixed) all permissions
    blurr> problems within the /home/mailman directory but not on the
    blurr> directory itself.
 
Good catch.
-Barry

-------------------- snip snip --------------------
Index: check_perms
===================================================================
RCS file: /projects/cvsroot/mailman/bin/check_perms,v
retrieving revision 1.5
retrieving revision 1.6
diff -c -r1.5 -r1.6
*** check_perms	1999/07/12 20:34:25	1.5
--- check_perms	1999/08/13 15:53:48	1.6
***************
*** 73,78 ****
--- 73,90 ----
                  print
  
  def checkall():
+     # first check PREFIX
+     mode = statmode(mm_cfg.PREFIX)
+     perms = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
+     if (mode & perms) <> perms:
+         STATE.ERRORS = STATE.ERRORS + 1
+         print mm_cfg.PREFIX, 'must be at least 02755',
+         if STATE.FIX:
+             print '(fixing)'
+             os.chmod(mm_cfg.PREFIX, mode | perms)
+         else:
+             print
+     # check all subdirs
      os.path.walk(mm_cfg.PREFIX, checkwalk, STATE)
  
  




More information about the Mailman-Users mailing list