fcgi-server doesn't work: wrong permissions for sympa.conf

Bug #191489 reported by Carsten Senger
2
Affects Status Importance Assigned to Milestone
sympa (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: sympa

using the fcgi-entry and the alias in /etc/apache/conf.d/sympa fails because of wrong permissions for /etc/sympa/sympa.conf:

# ls -lh /etc/sympa/sympa.conf
-rw-r----- 1 sympa sympa 5.3K 2008-02-13 08:39 /etc/sympa/sympa.conf

The fcgi-process runs as www-data:www-data

# ps ax -o %u%g%c | grep wwsympa
www-data www-data wwsympa.fcgi

Snippet from /var/log/apache2/error.log:
[Wed Feb 13 03:11:06 2008] [error] [client 209.191.82.253] File does not exist: /var/www/default/robots.txt
load: Unable to open /etc/sympa/sympa.conf: Permission denied
Unable to load sympa config file /etc/sympa/sympa.conf
[Wed Feb 13 09:00:09 2008] [notice] mod_fcgid: process /usr/lib/cgi-bin/sympa/wwsympa.fcgi(709) exit(communication error), terminated by calling exit(), return code: 1
/bin/cat: /etc/sympa/cookie: Permission denied

System:
sympa 5.3.4-2ubuntu1
mysql-server-5.0 5.0.51-3ubuntu2

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

Revision history for this message
Knut Auvor Grythe (knut-a-grythe) wrote :

If the debconf options sympa/use_wwsympa is true, the postinst script for sympa will set wwsympa.fcgi suid sympa.

To use wwsympa and the soap interface, run dpkg-reconfigure sympa and enable wwsympa, fastcgi and the soap interface. If your debconf is not comfigured to display these options, you can change them using this little script (which is what I used):

cat <<EOF > /tmp/debconf.input
sympa sympa/use_wwsympa boolean true
sympa wwsympa/fastcgi boolean true
sympa sympa/use_soap boolean true
EOF
debconf-set-selections /tmp/debconf.input
aptitude reinstall sympa

This should set the correct permissions. Please note that there should only be one space between "boolean" and "true".

If anyone is interested: I learned this by reading /var/lib/dpkg/info/sympa.postinst

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in sympa:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in sympa:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.