On Tuesday 21 July 2009, Bowie Bailey wrote: >Gene Heskett wrote: >> On Tuesday 21 July 2009, Sebastian Wiesinger wrote: >>> * Gene Heskett <gene.hesk...@verizon.net> [2009-07-21 14:11]: >>>> The gist is: >>>> gpg: WARNING: unsafe permissions on homedir `/var/lib/spamassassin/keys' >>>> >>>> And ls -l returns: >>>> [r...@coyote linux-2.6.30.2]# ls -l /var/lib/spamassassin >>>> total 16 >>>> drwxr-xr-x 3 saupdate saupdate 4096 2009-07-21 02:45 3.002005 >>>> drwx--x--x 2 saupdate mail 4096 2009-07-21 02:45 keys >>>> >>>> So what should the perms be on this directory? >>> >>> AFAIR gnupg expects 0700 as permissions for the directory. >>> >>> Regards, >>> >>> Sebastian >> >> I had that set once, and just rest it again, but then saupdate, which runs >> as its own user, couldn't access it. Reason? Are the ownerships correct? >> I confess to stumbling around in the dark. >> >> Thanks Sebastian. > >If permissions are 0700 and sa-update cannot read the directory, then >sa-update is not running as the user "saupdate". Double-check which >user sa-update runs as and chown the directory to that user.
Here is the line, in the display of: su saupdate -c "crontab -e": 45 2 * * 2 /usr/bin/sa-update --gpghomedir /var/lib/spamassassin/keys So it should be running as saupdate. This is executed silently: [r...@coyote linux-2.6.30-rc8]# su saupdate -c "/usr/bin/sa-update --gpghomedir /var/lib/spamassassin/keys" [r...@coyote linux-2.6.30-rc8]# And I have not received an email from it, so I assume that 0700 fixed it. However, I haven't been impressed with the sa-learn operation recently, I have fed it at least 100 messages from one site, and still can't get a score over 3 for those. Thanks Bowie. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) The NRA is offering FREE Associate memberships to anyone who wants them. <https://www.nrahq.org/nrabonus/accept-membership.asp> World Domination, of course. And scantily clad females. Who cares if its twenty below? -- Linus Torvalds