Mailman CGI error!!!

When I enter mi mailman, at
http://midomain/mailman/admin or http://midomain/mailman/admindb or…
I get an error

Mailman CGI error!!! The Mailman CGI wrapper encountered a fatal error. This entry is being stored in your syslog: Failure to exec script. WANTED gid 483, GOT gid 8.


tutatis:/usr/lib/mailman/cgi-bin # cat /etc/group |grep 483
vnc:x:483:
tutatis:/usr/lib/mailman/cgi-bin # cat /etc/group |grep :8:
www:x:8:wwwrun
tutatis:/usr/lib/mailman/cgi-bin # 

but  gid:8 is the logic one:  wwwrun

gid:483 has no sense.



tutatis:/usr/lib/mailman/cgi-bin # ls -l
total 144
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 admin
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 admindb
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 confirm
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 create
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 editarch
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 edithtml
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 listinfo
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 options
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 private
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 rmlist
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 roster
-rwxr-sr-x 1 root mailman 10848 Jun 9 06:22 subscribe
tutatis:/usr/lib/mailman/cgi-bin #





Any help?

best regards

Hi
Somebody used vnc to login to the system and start the mailman process?

If you run ps -ef to see user/groups running the process.

No, the mailman process is started at boot time as a service.

fperal@tutatis:~> ps -ef |grep mailman
mailman   3366     1  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl --quiet --stale-lock-cleanup start
mailman   3367  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman   3370  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
mailman   3371  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
mailman   3372  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
mailman   3374  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman   3375  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
mailman   3377  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
mailman   3379  3366  0 00:14 ?        00:00:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
fperal    5699  3468  0 00:16 pts/0    00:00:00 grep --color=auto mailman

I have log in with ssh and then

fperal@tutatis:~> su -
Contraseña: 
tutatis:~ # service mailman restart

but no change.

mailman is working well though, it delivers mail to the lists, is just the web interface which does not work.

Hi
What is the output from;


systemctl status mailman

tutatis:~ # systemctl status mailman
● mailman.service - LSB: Starts the mailinglist manager Mailman
   Loaded: loaded (/etc/init.d/mailman; generated; vendor preset: disabled)
   Active: active (running) since Fri 2020-09-04 00:14:25 CEST; 1 day 19h ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 9
   CGroup: /system.slice/mailman.service
           ├─3366 /usr/bin/python /usr/lib/mailman/bin/mailmanctl --quiet --stale-lock-cleanup start
           ├─3367 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
           ├─3370 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
           ├─3371 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
           ├─3372 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
           ├─3374 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
           ├─3375 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
           ├─3377 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
           └─3379 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
tutatis:~ # 

best regards

tutatis:/usr/lib/mailman/bin # cat /etc/group |grep 483
vnc:x:483:
tutatis:/usr/lib/mailman/bin # 

tutatis:/usr/lib/mailman/bin # cat /etc/group |grep wwwrun
nagcmd:!:107:nagios,wwwrun
www:x:8:wwwrun
wwwrun:x:464:

And checking the configuration

tutatis:/usr/lib/mailman/bin # ./mailman-config --help
Configuration and build information for Mailman

Mailman version: 2.1.29
Build Date:      Tue Jun  9 04:22:44 UTC 2020

prefix:          /usr/lib/mailman
var_prefix:      /var/lib/mailman
mailman_user:    
mailman_group:   
mail_group:      www
cgi_group:       wwwrun

configure_opts: "--host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --prefix=/usr/lib/mailman --exec-prefix=/usr/lib/mailman --localstatedir=/var/run --libexecdir=/usr/lib/mailman --with-groupname=mailman --with-username=mailman --with-var-prefix=/var/lib/mailman --without-permcheck --with-cgi-gid=wwwrun --with-mail-gid=www"
tutatis:/usr/lib/mailman/bin # 

I can’t understand why

I have checked (and fixed the permissions) but no change


tutatis:/usr/lib/mailman/bin # ./check_perms
/var/lib/mailman/archives bad group (has: www, expected mailman)
directory permissions must be 02775: /var/lib/mailman/archives
directory permissions must be 02775: /var/lib/mailman/.local
/var/lib/mailman/archives/private bad group (has: www, expected mailman)
directory permissions must be 02770: /var/lib/mailman/archives/private
directory permissions must be 02775: /var/lib/mailman/.local/share
directory permissions must be 02775: /var/lib/mailman/.local/share/systemd
mbox file must be at least 0660: /var/lib/mailman/archives/private/pluma.mbox/pluma.mbox

Problems found: 8
Re-run as mailman (or root) with -f flag to fix
tutatis:/usr/lib/mailman/bin # ./check_perms -f
/var/lib/mailman/archives bad group (has: www, expected mailman) (fixing)
directory permissions must be 02775: /var/lib/mailman/archives (fixing)
directory permissions must be 02775: /var/lib/mailman/.local (fixing)
/var/lib/mailman/archives/private bad group (has: www, expected mailman) (fixing)
directory permissions must be 02770: /var/lib/mailman/archives/private (fixing)
directory permissions must be 02775: /var/lib/mailman/.local/share (fixing)
directory permissions must be 02775: /var/lib/mailman/.local/share/systemd (fixing)
mbox file must be at least 0660: /var/lib/mailman/archives/private/pluma.mbox/pluma.mbox
(fixing)
Problems found: 8
Re-run as mailman (or root) with -f flag to fix
tutatis:/usr/lib/mailman/bin # ./check_perms
No problems found
tutatis:/usr/lib/mailman/bin # 

This wikisays is a error in the code, but in case of a rpm package “you either need to get different packages which are configured correctly, or you need to install the correctly configured code from source” :frowning:

SOLVED

The GID is in the file /etc/mailman/mailman.cgi-gid

So I edited this file which contained just a number (483) and changed it with the correct one (8).

Don’t ask me why it has changed to 483, I didn’t do it :question: