On Tue, 10 Aug 2010 15:17:33 -0700
Gary Funck <g...@intrepid.com> wrote:

> On 08/10/10 07:48:42, Stevan Bajić wrote:
> > Gary: And there I can see why it wouldn't be correct
> > Gary: to allow me to query all users unless I'm a trusted user.
> > Gary: But I can't even get at the stats for my own user id, when
> > Gary: I was able to generate the spam signature database in the
> > Gary: the first place?
> >
> > You know who created those tokens in the css database?
> > It was the binary dspam. Can you check and tell me if
> > the binary dspam is setuid or setgid? Probably it is while dspam_stats is 
> > not.
> 
> -r-x--s--x 1 dspam mail 104256 Jul 13 08:10 /usr/bin/dspam
> 
> Above, setgid on /usr/bin/dspam, group = mail.
> Everything is mode 0755 and owner/group is root/root.
> 
> 
btw: dspam_stats works perfectly if you call it as a normal user.

I took now the time to test it. First I called it with just a normal user:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
someu...@theia / $ dspam_stats
Unable to read dspam.conf
someu...@theia /
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Okay. It can not read dspam.conf. Let me give the user the right to read 
dspam.conf (dangerous since passwords for the storage and such are there but 
anyway... for the test it's okay) and retry:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
someu...@theia / $ dspam_stats
Program mode requires special privileges, e.g., root or Trusted User
someu...@theia / $ 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Okay. It complains that I need root or Trusted User security. Well... lets try 
the command but this time giving my own username as an argument:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
someu...@theia / $ dspam_stats someuser
someuser
                TP True Positives:                    99
                TN True Negatives:                   198
                FP False Positives:                    4
                FN False Negatives:                    3
                SC Spam Corpusfed:                     5
                NC Nonspam Corpusfed:                  6
                TL Training Left:                   2292
                SHR Spam Hit Rate                 97.06%
                HSR Ham Strike Rate:               1.98%
                PPV Positive predictive value:    96.12%
                OCA Overall Accuracy:             97.70%

someu...@theia / $
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Try again the same but this time using another username than my own:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
someu...@theia / $ dspam_stats -S -H anotheruser
Program mode requires special privileges, e.g., root or Trusted User
someu...@theia / $
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Works as expected.


IMHO that is exactly what should happen. But I understand your issue with the 
training script. That thing should be modified to call dspam_stats with the 
username used when training.



-- 
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

Reply via email to