spamassassin upgrade unsafe ownership

Discussion in 'Installation/Configuration' started by chief, Oct 11, 2021.

  1. chief

    chief Member

    Hi,
    Debain 9, ispconfig 3.2.2
    I updated the software and have now this issue..
    Code:
    Reading changelogs... Done
    (Reading database ... 54085 files and directories currently installed.)
    Preparing to unpack .../libruby2.3_2.3.3-1+deb9u10_amd64.deb ...
    Unpacking libruby2.3:amd64 (2.3.3-1+deb9u10) over (2.3.3-1+deb9u9) ...
    Preparing to unpack .../ruby2.3_2.3.3-1+deb9u10_amd64.deb ...
    Unpacking ruby2.3 (2.3.3-1+deb9u10) over (2.3.3-1+deb9u9) ...
    Setting up spamassassin (3.4.2-1~deb9u4) ...
    gpg: WARNING: unsafe ownership on homedir '/var/lib/spamassassin/sa-update-keys'
    gpg: failed to create temporary file '/var/lib/spamassassin/sa-update-keys/.#lk0x00005somerandomthings0.mail.......co.uk.19662': Permission denied
    gpg: keyblock resource '/var/lib/spamassassin/sa-update-keys/pubring.kbx': Permission denied
    gpg: no writable keyring found: Not found
    gpg: error reading '/usr/share/spamassassin/GPG.KEY': General error
    gpg: import from '/usr/share/spamassassin/GPG.KEY' failed: General error
    gpg: process '/usr/bin/gpg --homedir='/var/lib/spamassassin/sa-update-keys' --batch --no-tty --status-fd=1 -q --logger-fd=1 --import' finished: exit 2
    dpkg: error processing package spamassassin (--configure):
     subprocess installed post-installation script returned error exit status 2
    Processing triggers for libc-bin (2.24-11+deb9u4) ...
    dpkg: dependency problems prevent configuration of sa-compile:
     sa-compile depends on spamassassin; however:
      Package spamassassin is not configured yet.
    
    dpkg: error processing package sa-compile (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for man-db (2.7.6.1-2) ...
    Setting up libruby2.3:amd64 (2.3.3-1+deb9u10) ...
    Setting up ruby2.3 (2.3.3-1+deb9u10) ...
    Processing triggers for libc-bin (2.24-11+deb9u4) ...
    Errors were encountered while processing:
     spamassassin
     sa-compile
    
    and now getting a ton load of more spam because of it... damn spammers
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Which software?
    Debian 9 and ISPConfig 3.2.2 are both rather old versions.
    What was the command issued that showed the output in code block?
    What show commands
    Code:
    ls -lhd /var/lib/spamassassin/
    s -lh /var/lib/spamassassin/*
     
  3. chief

    chief Member

    Yes, have built new system, debian 10 and has the issue with certbot not generating issue when setting it all up.
    Will re visit next few days, making sure all is well.
    I do want a backup mail server with high availability. if your have some links, can you point me..
    now, out put of your command
    Code:
    root@mail:~# ls -lhd /var/lib/spamassassin/
    drwxr-xr-x 6 debian-spamd debian-spamd 4.0K Jul 26 08:53 /var/lib/spamassassin/
    
    ......
    
    root@mail:~# ls -lh /var/lib/spamassassin/*
    /var/lib/spamassassin/3.004002:
    total 8.0K
    drwxr-xr-x 2 root root 4.0K Oct  7 09:16 updates_spamassassin_org
    -rw-r--r-- 1 root root 2.9K Oct  7 09:16 updates_spamassassin_org.cf
    
    /var/lib/spamassassin/compiled:
    total 4.0K
    drwxr-xr-x 3 116 122 4.0K Jun 26  2020 5.024
    
    /var/lib/spamassassin/sa-update-keys:
    total 16K
    drwx------ 2 116 122 4.0K Jun 26  2020 private-keys-v1.d
    -rw-r--r-- 1 116 122 2.9K Jun 26  2020 pubring.kbx
    -rw------- 1 116 122   32 Jun 26  2020 pubring.kbx~
    -rw------- 1 116 122 1.2K Jun 26  2020 trustdb.gpg
    
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    My guess is the complaint is about owners of the files in /var/lib/spamassassin directory. On my system they are
    Code:
    root@posti:~# ls -lh /var/lib/spamassassin/*
    /var/lib/spamassassin/compiled:
    yhteensä 4,0K
    drwxr-xr-x 3 debian-spamd debian-spamd 4,0K helmi  14  2021 5.028
    
    /var/lib/spamassassin/sa-update-keys:
    yhteensä 16K
    drwx------ 2 debian-spamd debian-spamd 4,0K helmi  14  2021 private-keys-v1.d
    -rw-r--r-- 1 debian-spamd debian-spamd 3,0K helmi  14  2021 pubring.kbx
    -rw------- 1 debian-spamd debian-spamd   32 helmi  14  2021 pubring.kbx~
    -rw------- 1 debian-spamd debian-spamd 1,2K helmi  14  2021 trustdb.gpg
    root@posti:~#
    
    Somehow on your system the owner and group owner has been messed up.
    You did not answer:
     
  5. chief

    chief Member

    It was just an apt-get update the and apt-get upgrade, thats when i had the message..

    i have updated after the permission change, all looks good.
    thanks
     

Share This Page