Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 56250
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 53533
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jim Ramsay <lack@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 56250 depends on: Show dependency tree
Bug 56250 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-06 09:44 0000
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 "create a new mailing list" link
3. Fill in the blanks and hit "accept"

Actual Results:  
Bug in Mailman version 2.1.5

We'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 "/usr/local/mailman/scripts/driver", line 87, in run_main
    main()
  File "/usr/local/mailman/Mailman/Cgi/create.py", line 55, in main
    process_request(doc, cgidata)
  File "/usr/local/mailman/Mailman/Cgi/create.py", line 187, in process_request
    mlist.Create(listname, owner, pw, langs, emailhost)
  File "/usr/local/mailman/Mailman/MailList.py", line 457, in Create
    self.InitVars(name, admin, crypted_password)
  File "/usr/local/mailman/Mailman/MailList.py", line 372, in InitVars
    baseclass.InitVars(self)
  File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 95, in InitVars
    os.mkdir(self.archive_dir()+'.mbox', 02775)
OSError: [Errno 13] Permission denied:
'/usr/local/mailman/archives/private/test.mbox'


Expected Results:  
The list should have been created properly.

I believe it is a permissions issue, as the 'create' 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 'create' 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.

------- Comment #1 From Martin Holzer (RETIRED) 2004-07-06 14:06:25 0000 -------
how about

su - mailman
./bin/newlist
 ?

------- Comment #2 From Martin Holzer (RETIRED) 2004-07-06 14:32:56 0000 -------
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

------- Comment #3 From Jim Ramsay 2004-07-06 14:35:06 0000 -------
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?

------- Comment #4 From Martin Holzer (RETIRED) 2004-07-06 15:39:40 0000 -------
let me look at two other boxes in about 12 hours

------- Comment #5 From Tuan Van (RETIRED) 2004-07-21 14:10:21 0000 -------
in the pkg_postinst funstion, check_perms runs and hit bug #53533. It never
finish to fix the perms.

------- Comment #6 From Tuan Van (RETIRED) 2004-07-21 17:40:54 0000 -------
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 ***

------- Comment #7 From Matteo Settenvini 2005-05-25 01:24:28 0000 -------
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, "checkarchives()" in check_perms should address also that.
please reopen.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug