On 12/26/20 11:25 PM, Marco Gaiarin wrote:
> Package: sympa
> Version: 6.2.40~dfsg-1+deb10u1
> Severity: normal
> 
> Dear Maintainer,
> 
> I've tried to upgrade sympa, and lead to debocnf error because i've mounted a 
> filesystem
> for 'arc' subdir:
> 
>  root@mail:~# df -h
>  File system     Dim. Usati Dispon. Uso% Montato su
>  /dev/loop1      2,9G  1,9G    904M  68% /
>  /dev/loop11     9,8G  744M    8,6G   8% /home
>  /dev/loop12     4,9G  1,6G    3,1G  35% /var/lib/sympa/arc
> 
> and debconf complain that cannot chown 'lost+found' dir (and indeed is true).

Hello Marco,

this is indeed a part of the postinst script that should be fixed.

The recursive chown should not necessary any more with recent Sympa releases,
as Sympa creates missing directories when needed.

Thus the owner of the top directories (/var/spool/sympa and /var/lib/sympa) 
could be
set by a non-recursive chown.

Thanks for the report!

Regards
       Racke

> 
> I've tried to modify the postinst script, and at last i've commented the 
> guilty find,
> let debconf to end:
> 
>  --- /var/lib/dpkg/info/sympa.postinst.dist   2020-12-10 14:39:54.000000000 
> +0100
>  +++ /var/lib/dpkg/info/sympa.postinst        2020-12-26 23:01:15.342509840 
> +0100
>  @@ -221,9 +221,9 @@
>   
>   # It's better to search files and directories with wrong owner/group and fix
>   # them instead of recursively doing it, even if it's not needed (see 
> #630384)
>  -find /var/spool/sympa /var/lib/sympa \
>  -    \( -not -user sympa -or -not -group sympa \) \
>  -    -exec chown sympa:sympa {} \;
>  +#find /var/spool/sympa /var/lib/sympa \
>  +#    \( -not -user sympa -or -not -group sympa \) -not -name 'lost+found' \
>  +#    -exec chown sympa:sympa {} \;
>   
>   # Fix permissions on CGI wrappers
>   chown sympa:sympa /usr/lib/cgi-bin/sympa/wwsympa-wrapper.fcgi \
> 
> I think a better find have to be setup, but i was not able to do that...
> 
> 
> Thanks.
> 
> -- System Information:
> Debian Release: 10.7
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.15.18-14-pve (SMP w/2 CPU cores)
> Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), 
> LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages sympa depends on:
> ii  adduser                                    3.118
> ii  ca-certificates                            20200601~deb10u1
> ii  dbconfig-common                            2.0.11+deb10u1
> ii  debconf [debconf-2.0]                      1.5.71
> ii  exim4-daemon-heavy [mail-transport-agent]  4.92-8+deb10u4
> ii  fonts-font-awesome                         5.0.10+really4.7.0~dfsg-1
> ii  libarchive-zip-perl                        1.64-1
> ii  libc6                                      2.28-10
> ii  libcgi-fast-perl                           1:2.13-1
> ii  libcgi-pm-perl                             4.40-1
> ii  libclass-singleton-perl                    1.5-1
> ii  libcrypt-eksblowfish-perl                  0.009-2+b5
> ii  libcrypt-openssl-x509-perl                 1.8.12-1
> ii  libcrypt-smime-perl                        0.25-1+b1
> ii  libdatetime-format-mail-perl               0.4030-1
> ii  libdbd-csv-perl                            0.5300-1
> ii  libdbd-mysql-perl                          4.050-2
> ii  libdbd-pg-perl                             3.7.4-3
> ii  libdbd-sqlite3-perl                        1.62-3
> ii  libdbi-perl                                1.642-1+deb10u1
> ii  libfcgi-perl                               0.78-2+b3
> ii  libfile-copy-recursive-perl                0.44-1
> ii  libfile-nfslock-perl                       1.29-1
> ii  libhtml-format-perl                        2.12-1
> ii  libhtml-stripscripts-parser-perl           1.03-2
> ii  libhtml-tree-perl                          5.07-2
> ii  libintl-perl                               1.26-2
> ii  libio-stringy-perl                         2.111-3
> ii  libjs-jquery                               3.3.1~dfsg-3
> ii  libjs-jquery-migrate-1                     1.4.1-1
> ii  libjs-jquery-minicolors                    2.2.6+dfsg-3
> ii  libjs-jquery-ui                            1.12.1+dfsg-5
> ii  libmail-dkim-perl                          0.54-1
> ii  libmailtools-perl                          2.18-1
> ii  libmime-charset-perl                       1.012.2-1
> ii  libmime-encwords-perl                      1.014.3-2
> ii  libmime-lite-html-perl                     1.24-3
> ii  libmime-tools-perl                         5.509-1
> ii  libnet-cidr-perl                           0.19-1
> ii  libnet-dns-perl                            1.19-1
> ii  libnet-ldap-perl                           1:0.6500+dfsg-1
> ii  libnet-netmask-perl                        1.9104-1
> ii  libregexp-common-perl                      2017060201-1
> ii  libsoap-lite-perl                          1.27-1
> ii  libtemplate-perl                           2.27-1+b1
> ii  libterm-progressbar-perl                   2.22-1
> ii  libunicode-linebreak-perl                  0.0.20190101-1
> ii  libxml-libxml-perl                         2.0134+dfsg-1
> ii  lsb-base                                   10.2019051400
> ii  mhonarc                                    2.6.19-2
> ii  perl                                       5.28.1-6+deb10u1
> ii  rsyslog [system-log-daemon]                8.1901.0-1
> ii  sqlite3                                    3.27.2-3+deb10u1
> 
> Versions of packages sympa recommends:
> ii  apache2-suexec-custom [apache2-suexec]  2.4.38-3+deb10u4
> ii  default-mysql-server                    1.0.5
> ii  doc-base                                0.10.8
> ii  libapache2-mod-fcgid                    1:2.3.9-4
> ii  libcrypt-ciphersaber-perl               1.01-2.1
> ii  libio-socket-ssl-perl                   2.060-3
> ii  locales                                 2.28-10
> ii  logrotate                               3.14.0-4
> 
> Versions of packages sympa suggests:
> ii  apache2 [httpd-cgi]  2.4.38-3+deb10u4
> pn  libauthcas-perl      <none>
> pn  libdbd-odbc-perl     <none>
> pn  libdbd-oracle-perl   <none>
> 
> -- Configuration Files:
> /etc/sympa/topics.conf changed [not included]
> 
> -- debconf information:
>   sympa/mysql/admin-pass: (password omitted)
>   sympa/mysql/app-pass: (password omitted)
>   sympa/pgsql/app-pass: (password omitted)
>   sympa/password-confirm: (password omitted)
>   sympa/app-password-confirm: (password omitted)
>   sympa/pgsql/admin-pass: (password omitted)
> * sympa/passwords-do-not-match:
>   sympa/upgrade-error: abort
> * sympa/dbconfig-install: true
> * sympa/dbconfig-reinstall: true
>   sympa/pgsql/authmethod-user: password
> * wwsympa/wwsympa_url: https://lists.pnlug.it/wws
>   sympa/pgsql/authmethod-admin: ident
> * sympa/db/dbname: sympa
>   sympa/pgsql/no-empty-passwords:
>   sympa/internal/reconfiguring: false
>   sympa/purge: false
>   sympa/pgsql/method: TCP/IP
> * sympa/mysql/admin-user: root
>   sympa/remove-error: abort
> * sympa/use_soap: false
> * sympa/database-type: mysql
>   sympa/dbconfig-remove: true
>   sympa/pgsql/changeconf: false
> * sympa/language: it
>   sympa/remove_spool: false
>   sympa/remote/host: localhost
>   sympa/missing-db-package-error: abort
>   sympa/remote/newhost:
>   sympa/db/basepath:
>   sympa/internal/skip-preseed: false
>   sympa/dbconfig-upgrade: true
>   sympa/pgsql/manualconf:
>   sympa/remote/port:
> * sympa/listmaster: listmas...@pnlug.it
> * wwsympa/remove_spool: true
>   sympa/pgsql/admin-user: postgres
> * wwsympa/webserver_type: Apache 2
> * sympa/mysql/method: Unix socket
> * sympa/db/app-user: sympa@localhost
>   sympa/upgrade-backup: true
> * sympa/hostname: lists.pnlug.it
>   sympa/install-error: abort
> * sympa/sympa_newaliases-wrapper-setuid-root: false
> 


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to