Re: flist:_Permission_denied

Zhiliang Hu <[email protected]> Tue, 25 Aug 2009 20:39:22 -0500 (CDT)
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
On Wed, 26 Aug 2009, Santiago Vila wrote:

> Date: Wed, 26 Aug 2009 02:26:33 +0200 (CEST)
> From: Santiago Vila <[email protected]>
> To: Zhiliang Hu <[email protected]>
> Cc: [email protected]
> Subject: Re: flist:_Permission_denied
> 
>>> In my system:
>>>
>>> # ls -l /var/list/.bin/flist
>>> -rwsr-xr-x 5 root list 25432 ene 18  2007 /var/list/.bin/flist
>>>
>>> Those are also the permissions of the executable inside the .deb.
>>> Either those permissions were lost during the conversion to .rpm,
>>> or maybe you changed them after installing the package.
>>
>> I didn't change it.  Now I chmod my flist to be:
>> -rwsr-xr-x 5 list list 25432 Jan 18  2007 /var/list/.bin/flist
>> and I still get the same "deferral:
>> /bin/sh:_/var/list/.bin/flist:_Permission_denied/" error.
>
> Two things:
>
> 1. The permissions/ownerships are not the same yet. My flist is owned
> by root, yours is still owned by list.

In my old smartlist settings it was all owned by ~list.
Okey, now I did "chown -R root list" (tested; didn't help).

I suppose it has to be owned by the ~list because ~list handles the 
processes (it's the case at least in a number of my old installations).


> 2. flist is an ELF binary. Why is he trying to execute as a sh-script?
> Does your /etc/aliases have entries like these ones?:
>
> foo: "|/var/list/.bin/flist foo"
> foo-request: "|/var/list/.bin/flist foo-request"
>
> (or whatever the qmail-equivalent might be).

Yes, exactly. No idea how shell gets in the way. Any suggestion for 
alternatives?

Thanks,
Zhiliang