[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exim and right permissions for execution of a perl script



On Wed, Aug 21, 2002 at 01:12:02PM +0300, Patrick J Okui wrote:
> I tried setting the permissions of all the required files like so
> 
> chmod -R g+rw /home/pokui/db_suite
> chgrp -R exim /home/pokui/db_suite

in order to look inside the directory, exim will need '+x' permission.

Having said that:

> 2002-08-19 12:52:53 17gjDR-000216-00 **
> |/home/pokui/dns_suite/primary_db.pl <db-test at mydomain> R=system_aliases
> T=address_pipe: Child process of address_pipe transport returned 13 from
> command: /home/pokui/db_suite/primary_db.pl 2002-08-19 12:52:53

I think it was able to locate the file and start to run it (13 is "sigpipe",
use "kill -l" for a list; it means that the other end closed the pipe before
the sending end was ready). Maybe the program itself terminated prematurely?
Do you have any logging from this perl script? Can you replace it with

    #!/bin/sh
    cat >>/tmp/mylog

and see what happens? Actually,

    #!/bin/sh
    id >>/tmp/mylog

would be a useful test, it should record both the uid and gid which the
script is run as, so you can work out which permissions are wrong exactly.

My guess is that the perl script is trying to open a file, doesn't have
permissions, and fails. If the above test shows that it is being run as a
group you don't expect, then you could try adding 'group = exim' to the
system_aliases: director.

B.

-----
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