[Mailman-Users] strange permissions

janis at camp.lv janis at camp.lv
Thu Aug 22 16:14:02 CEST 2002


Hi!
I am using Linux From Scratch and I have some problems installing mailman. I 
have seen a lot of this-like posts and tried many solutions but non of them 
seem to work. So here is what I did:
>cat /usr/local/apache/conf/httpd.conf|grep Group
>Group apache
I even created temporary cgi w command `touch /tmp/test` and it gave me result
>-rw-r--r--    1 apache   apache          0 Aug 19 23:26 test
just to be sure cgi is executed w user/group apache
>cat /etc/group|grep apache
>apache:x:102:

I am using postfix and installed separate alias file for mailman 
in /usr/local/mailman/alias as suggested in INSTALL
>cat /etc/postfix/main.cf|grep mailman
>alias_maps = hash:/usr/local/mailman/aliases

>-rwxrwsr-x    1 mailman  mailman       251 Aug 22 13:21 aliases

after that I did
>postalias /usr/local/mailman/aliases
>newaliases /usr/loca/mailman/aliases
so that mail delivery is done by user/group mailman

I created folder /usr/local/mailman
>drwxrwsr-x   18 root     mailman      4096 Aug 22 13:21 mailman

So this is setup....
>cat /etc/group|grep mailman
>mailman:x:1009:

>./configure --prefix=/usr/local/mailman --with-cgi-gid=102 --with-mail-gid=1009
>make
>make install

>./mmsitepass
>./newlist tmp

>cat members.txt
>one at myhost.com
>two at myhost.com
>./add_members -n members.txt tmp

After this I can send messages to tmp at myhost.com and mailinglist works fine. So 
here is my problem: When I try to open http://www.myhost.com/mailman/admin I 
get "Bug in Mailman version 2.0.13\nWe're sorry, we hit a bug!...".
/logs/error doesn't say anything until I changed permissions to error from
>-rw-rw-r--    1 mailman  mailman      7842 Aug 22 16:45 error
to
>-rw-rw-rw-    1 mailman  mailman      7842 Aug 22 16:45 error
and I got
>cat error
>...
>admin(25613):   File "/usr/local/mailman/Mailman/MailList.py", line 869, in 
__load
>admin(25613):     fp = open(dbfile)
>admin(25613): IOError: [Errno 13] Permission 
denied: '/usr/local/mailman/lists/tmp/config.db'
>...

>-rw-rw----    1 mailman  mailman      2997 Aug 22 16:37 config.db

I understand, that this is a problem with apache and permissions, but I can't 
figure out what exactly have I done wrong. If cgi admin has suid permissions 
than config.db should be accessed with group mailman?

Info that may help:
>ls -la /usr/local/mailman/cgi-bin/
>-rwxr-sr-x    1 root     mailman     29530 Aug 22 13:06 admin
>-rwxr-sr-x    1 root     mailman     29534 Aug 22 13:06 admindb
>-rwxr-sr-x    1 root     mailman     29542 Aug 22 13:06 edithtml
>-rwxr-sr-x    1 root     mailman     29542 Aug 22 13:06 handle_opts
>-rwxr-sr-x    1 root     mailman     29542 Aug 22 13:06 listinfo
>-rwxr-sr-x    1 root     mailman     29534 Aug 22 13:06 options
>-rwxr-sr-x    1 root     mailman     29534 Aug 22 13:06 private
>-rwxr-sr-x    1 root     mailman     29530 Aug 22 13:06 roster
>-rwxr-sr-x    1 root     mailman     29542 Aug 22 13:06 subscribe

>cat /usr/local/apache/conf/httpd.conf|grep mailman
>    Alias /pipermail/ /usr/local/mailman/archives/public/
>    ScriptAlias /mailman/       "/usr/local/mailman/cgi-bin/"


Any help would be greatly appreciated





More information about the Mailman-Users mailing list