On 4/3/20 9:57 AM, Christophe Moille wrote: > Le lundi 30 mars 2020 à 13:19:14 (+0200), Christophe Moille a écrit : >> >> Can't locate mhamain.pl: lib/mhamain.pl: Permission non accordée at >> /usr/bin/mhonarc line 39. > > Got some new result tests: > > root@zat:/home/whilelm# sudo su sympa -s/bin/bash > sympa@zat:/home/whilelm$ /usr/bin/mhonarc > Can't locate mhamain.pl: lib/mhamain.pl: Permission non accordée at > /usr/bin/mhonarc line 39. > sympa@zat:/home/whilelm$ cd > sympa@zat:~$ /usr/bin/mhonarc > Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) > at /usr/local/share/perl/5.24.1/mhamain.pl line 1565. > Compilation failed in require at /usr/bin/mhonarc line 39. > sympa@zat:~$ > > If I comment l36 of > # unshift(@INC, 'lib'); # Should I leave this line in? > > I have no more permission denied error > > root@zat:/home/whilelm# sudo su sympa -s/bin/bash > sympa@zat:/home/whilelm$ /usr/bin/mhonarc > Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) > at /usr/local/share/perl/5.24.1/mhamain.pl line 1565. > Compilation failed in require at /usr/bin/mhonarc line 39. > sympa@zat:/home/whilelm$ > > > Regards >
Hello Christophe, /usr/sbin/mhonarc should use the scripts located in /usr/share/mhonarc, so it looks like your local (Perl) setup causes the problems. Regards Racke -- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. Provisioning with Ansible.
signature.asc
Description: OpenPGP digital signature