On 2016-11-06 at 10:09:21, Jack.R wrote:
> I start to suspect a right access as that part is executed as
> email-reminder user.
> 
> So I try with a normal user by putting
> my $distro = `/bin/su - alain -s /bin/sh -c "/usr/bin/lsb_release -s
> -d"`;
> I am prompt for the password and then it works.
> It looks like email-reminder user has not sufficient rights to
> run /usr/bin/lsb_release without error but currently I did not see why.

What about this then?

my $distro = `/bin/su - email-reminder -s /bin/sh -c "/usr/bin/lsb_release -s 
-d"`;

Francois

-- 
https://fmarier.org/

Reply via email to