<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>56250</bug_id>
          
          <creation_ts>2004-07-06 09:44 0000</creation_ts>
          <short_desc>Mailman 2.1.5 create list from webpage fails</short_desc>
          <delta_ts>2005-07-17 13:06:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lack@gentoo.org</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          <cc>matteo-ml@member.fsf.org</cc>
    
    <cc>mholzer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2004-07-06 09:44:09 0000</bug_when>
            <thetext>Everything (so far) seems to be working with my mailman install, except creating lists from the web interface.

Reproducible: Always
Steps to Reproduce:
1. Log into the mailman administrator interface (http://localhost/mailman/admin/)
2. Click on the &quot;create a new mailing list&quot; link
3. Fill in the blanks and hit &quot;accept&quot;

Actual Results:  
Bug in Mailman version 2.1.5

We&apos;re sorry, we hit a bug!

If you would like to help us identify the problem, please email a copy of this
page to the webmaster for this site with a description of what happened. Thanks!
Traceback:

Traceback (most recent call last):
  File &quot;/usr/local/mailman/scripts/driver&quot;, line 87, in run_main
    main()
  File &quot;/usr/local/mailman/Mailman/Cgi/create.py&quot;, line 55, in main
    process_request(doc, cgidata)
  File &quot;/usr/local/mailman/Mailman/Cgi/create.py&quot;, line 187, in process_request
    mlist.Create(listname, owner, pw, langs, emailhost)
  File &quot;/usr/local/mailman/Mailman/MailList.py&quot;, line 457, in Create
    self.InitVars(name, admin, crypted_password)
  File &quot;/usr/local/mailman/Mailman/MailList.py&quot;, line 372, in InitVars
    baseclass.InitVars(self)
  File &quot;/usr/local/mailman/Mailman/Archiver/Archiver.py&quot;, line 95, in InitVars
    os.mkdir(self.archive_dir()+&apos;.mbox&apos;, 02775)
OSError: [Errno 13] Permission denied:
&apos;/usr/local/mailman/archives/private/test.mbox&apos;


Expected Results:  
The list should have been created properly.

I believe it is a permissions issue, as the &apos;create&apos; script sets its gid to
mailman, but not its uid, and the mailman/archives/private directory is
drwxr-xr-x and owned by mailman, not the apache user.

I have been unable to tell as yet whether the &apos;create&apos; script should be suid, or
if the permissions on the directory should be different, but one or the other
must be changed for this to work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-07-06 14:06:25 0000</bug_when>
            <thetext>how about

su - mailman
./bin/newlist
 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-07-06 14:32:56 0000</bug_when>
            <thetext>my permissions look good
works here

mailman@dvb mailman $ ls -la /usr/local/mailman/archives/
total 16
drwxrwsr-x   4 mailman mailman 4096 Jan  9 17:56 .
drwxrwsr-x  20 mailman mailman 4096 Jul  6 23:17 ..
drwxrws--x  14 mailman mailman 4096 Jul  6 23:29 private
drwxrwsr-x   2 mailman mailman 4096 Jul  6 23:29 public
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2004-07-06 14:35:06 0000</bug_when>
            <thetext>I changed the permissions to that, and everything works fine.  I have no idea why mine was busted.  Maybe it was just my install somehow and not the ebuild?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-07-06 15:39:40 0000</bug_when>
            <thetext>let me look at two other boxes in about 12 hours</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2004-07-21 14:10:21 0000</bug_when>
            <thetext>in the pkg_postinst funstion, check_perms runs and hit bug #53533. It never finish to fix the perms.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2004-07-21 17:40:54 0000</bug_when>
            <thetext>bug #53533 is resolved. ebuild ready for testing. resolve this as duplicate of the other bug.

*** This bug has been marked as a duplicate of 53533 ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matteo-ml@member.fsf.org</who>
            <bug_when>2005-05-25 01:24:28 0000</bug_when>
            <thetext>Happens again to me with new mailman-2.1.6_rc4

Before changing them, default permissions on /usr/local/mailman/archives were:

drwxr----x  6 mailman mailman 192 25 mag 10:09 private
drwxrwsr-x  2 mailman mailman 128 25 mag 10:09 public

afaik, &quot;checkarchives()&quot; in check_perms should address also that.
please reopen.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>