On Thu, 19 Aug 2010 23:53:26 +0200 Sebastian Toepfer <sebastian.toep...@onlinehome.de> wrote:
> Hi Stevan, > On Thu, 19 Aug 2010 23:23:14 +0200, Stevan Bajić <ste...@bajic.ch> wrote: > > On Thu, 19 Aug 2010 00:01:40 +0200 > > Sebastian Toepfer <sebastian.toep...@onlinehome.de> wrote: > > > > [...] > > > >> yes this work (i became this message). But www-data can read dspam.conf > >> and I only mis give permissions to dspam.d/* too:(. > >> > > I tried to give access to a user to read dspam.conf but have not given > him > > the right to read dspam.d and I can not reproduce that error on my end. > > With our without using Trust <someuser> in dspam.conf. How have you > managed > > to get that stack trace? Can you give me instructions that I need to > follow > > to get that stack trace? > > > > permissions for this stacktrace: > dspam:/etc/dspam$ ls -l > total 88 > -rw-r--r-- 1 root root 31 2010-08-12 17:52 admins > -rw-r--r-- 1 dspam dspam 1383 2007-08-23 00:07 default.prefs > -rw-r--r-- 1 root root 1609 2010-08-18 23:48 dspam-apache2.conf > -rw-r----- 1 dspam www-data 26923 2010-08-16 23:16 dspam.conf > drwxr-x--- 2 dspam dspam 4096 2010-08-18 23:26 dspam.d > -rw-r--r-- 1 root root 966 2010-08-18 19:06 dspam_notify.conf > -rw-r--r-- 1 root root 17168 2010-04-28 20:40 rgb.txt > -rw-r--r-- 1 root root 564 2010-04-28 20:40 subadmins > drwxr-xr-x 10 root root 4096 2010-08-18 23:27 templates > drwxr-xr-x 2 root root 4096 2010-08-18 23:26 txt > -rw-r--r-- 1 dspam dspam 7023 2010-08-12 18:19 webfrontend.conf > > dspam:/etc/dspam/dspam.d# ls -l > total 24 > -rw-r----- 1 dspam dspam 2475 2010-08-10 08:00 extlookup.conf > -rw-r----- 1 dspam dspam 2916 2010-08-10 08:00 hash.conf > -rw-r----- 1 dspam dspam 9761 2010-08-16 22:43 ignoreHeaders.conf > -rw-r----- 1 dspam dspam 2225 2008-02-24 21:17 mysql.conf > I just can not reproduce that on my installation. If I do the same permission as you then I get the following error: someu...@theia ~ $ dspam_stats someuser Unable to read dspam.conf someu...@theia ~ $ dspam.conf can be perfectly read by the user but dspam.d is not readable and then I get the above error. If I remove the include line and retry then I get: someu...@theia ~ $ dspam_stats Program mode requires special privileges, e.g., root or Trusted User someu...@theia ~ $ If I remove the read right on dspam.conf then I get: someu...@theia ~ $ dspam_stats Unable to read dspam.conf someu...@theia ~ $ So not being able to read the directory specified in Include is the same as not having read permission to dspam.conf. In all the combinations I have tried I never get a stack trace. Can you please checkout GIT version of DSPAM and try to reproduce that error? I was not able to get a stack trace with latest GIT? If you get a stack trace then please compile DSPAM with debug symbols and with enabled debugging and then run once with GDB and send me the stack trace from GDB. > resolv it with > > chgrp -R www-data dspam.d > > > > >> I think a error message is better than this stacktrace? > >> > >> Sebastian > >> > -- Kind Regards from Switzerland, Stevan Bajić ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user