On 12/02/16 16:59, Reindl Harald wrote:


Am 12.02.2016 um 17:29 schrieb Sebastian Arcus:
As per advice from this list, I have been re-using my bayes databases on
several different servers running SA. On one of the servers though, the
database is not accepted. I re-transferred them several times over ssh,
to make sure they were not corrupted. The database files are in the
correct location, with correct permissions and owned by the correct user:

# ls -l /var/spool/spamd/bayes/
total 5912
-rw-rw-rw- 1 spamd spamd 1310720 2016-02-09 08:42 bayes_seen
-rw-rw-rw- 1 spamd spamd 4739072 2016-02-09 08:43 bayes_toks

The version of SA on both the donor and receiving servers is 3.4.1.

When I try to learn a new message on the receiving server (where I moved
the bayes files), I get the following error:

su - spamd
stat /var
stat /var/spool
stat /var/spool/spamd
stat /var/spool/spamd/bayes

Linux is not like Windows - if ou don't have access to a parent folder you just don't have access

Sorry - previous reply sent in HTML format by mistake:

root@mdr-server:/# su - spamd
No directory, logging in with HOME=/

spamd@mdr-server:/$ stat /var
  File: `/var'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
Device: 900h/2304d    Inode: 12          Links: 16
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/ root)
Access: 2016-01-18 09:28:23.000000000 +0000
Modify: 2016-01-18 09:22:47.000000000 +0000
Change: 2016-01-18 09:28:23.744774236 +0000

spamd@mdr-server:/$ stat /var/spool
  File: `/var/spool'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
Device: 900h/2304d    Inode: 118         Links: 22
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/ root)
Access: 2015-02-03 14:28:33.000000000 +0000
Modify: 2015-12-03 17:41:28.859794403 +0000
Change: 2015-12-03 17:41:28.859794403 +0000

spamd@mdr-server:/$ stat /var/spool/spamd
  File: `/var/spool/spamd'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
Device: 900h/2304d    Inode: 15473107    Links: 3
Access: (0770/drwxrwx---)  Uid: ( 1037/   spamd)   Gid: (  252/ spamd)
Access: 2015-12-03 17:41:28.859794403 +0000
Modify: 2015-12-03 17:41:32.011239989 +0000
Change: 2015-12-03 17:46:59.187806044 +0000

spamd@mdr-server:/$ stat /var/spool/spamd/bayes/
  File: `/var/spool/spamd/bayes/'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
Device: 900h/2304d    Inode: 15473106    Links: 3
Access: (0776/drwxrwxrw-)  Uid: ( 1037/   spamd)   Gid: (  252/ spamd)
Access: 2015-12-03 17:41:32.011239989 +0000
Modify: 2016-02-12 16:20:53.778709980 +0000
Change: 2016-02-12 16:20:53.778709980 +0000


Reply via email to