[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: majordomo - exim error
On Sun, May 25, 2003 at 03:21:26AM -0700, FIAO. A. wrote:
> >First step: what does 'ls -l /usr/exim/bin/exim' say?
> >
> >Regards,
>
> [root at mail /root]# ls -l /usr/exim/bin/exim
> lrwxrwxrwx 1 root root 11 May 21 02:28
> /usr/exim/bin/exim -> exim-4.20-1
That's a symlink. Next step, what does 'ls -l /usr/exim/bin/exim-4.20-1' say?
config-test is just a Perl script, so it's easy enough to scan through it
and find out what it's trying to do at the point where it gives that error
(this taken from majordomo 1.94.5):
print "Attempting to verify that this is a valid mailer...";
if ( -x $x ) {
print "looks okay.\n";
} else {
print "nope, $x is not executable\n";
$BAD++;
}
So it's the perl '-x' operator it's using, which tests whether the target is
executable, *by the current user*. Since you have switched uids using
./wrapper to the majordomo user, you have to be sure that exim is executable
by that user. But unless you have fiddled with permissions, it will be.
On my laptop (FreeBSD-4.8) I have:
$ ls -l /usr/exim/bin/exim
lrwxr-xr-x 1 root wheel 11 May 19 22:54 /usr/exim/bin/exim -> exim-4.20-1
$ ls -l /usr/exim/bin/exim-4.20-1
-rwsr-xr-x 1 root wheel 592502 May 19 22:54 /usr/exim/bin/exim-4.20-1
^ ^
| `- executable by everyone
setuid
root
$ perl -e 'print (-x "/usr/exim/bin/exim")'
1
So it works OK for me.
Regards,
Brian.
-----
This is the afnog mailing list, managed by Majordomo 1.94.5
To send a message to this list, e-mail afnog at afnog.org
To send a request to majordomo, e-mail majordomo at afnog.org and put
your request in the body of the message (i.e use "help" for help)
This list is maintained by owner-afnog at afnog.org