fcgi-server doesn't work: wrong permissions for sympa.conf
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/
# ls -lh /etc/sympa/
-rw-r----- 1 sympa sympa 5.3K 2008-02-13 08:39 /etc/sympa/
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/
[Wed Feb 13 03:11:06 2008] [error] [client 209.191.82.253] File does not exist: /var/www/
load: Unable to open /etc/sympa/
Unable to load sympa config file /etc/sympa/
[Wed Feb 13 09:00:09 2008] [notice] mod_fcgid: process /usr/lib/
/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_
DISTRIB_
DISTRIB_
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 set-selections /tmp/debconf.input
sympa sympa/use_wwsympa boolean true
sympa wwsympa/fastcgi boolean true
sympa sympa/use_soap boolean true
EOF
debconf-
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