<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 21/01/2021 20:48, Dan Campbell -
dan--- via Pdns-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2CC9CC70-42FA-4350-9548-F3E046C0137F@us.ibm.com">
<p class="MsoNormal"><span style="font-size:14.0pt">I just
installed the Authoritative server 4.4.0 on a CentOS 8 virtual
machine and I’m trying to get a simple pipebackend running.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">The backend is
a python script that runs from the command line, but
pdns_server fails to start and give the following error:<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:14.0pt">[PIPEBackend] Unable to launch, fatal
argument error: Command '/home/webapps/dns/bin/backend.py'
cannot be executed: Permission><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:14.0pt">Caught an exception instantiating a
backend: Command '/home/webapps/dns/bin/backend.py' cannot be
executed: Permission denied<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:14.0pt">Cleaning up<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:14.0pt">Distributor caught fatal exception:
Command '/home/webapps/dns/bin/backend.py' cannot be executed:
Permission denied<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">The
permissions on the script and all directories in the path are
755 …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">Any ideas
about why pdns_server (running under the pdns id) does not
have permissions to run a program with 755 permissions?</span></p>
</blockquote>
<p>If it has a shebang line and you can run it directly from the
command line by typing "/home/webapps/dns/bin/backend.py", then my
guess is that it's an SELinux or AppArmor thing.</p>
<p>Being CentOS then it would be SELinux. Try switching SELinux
into permissive mode and see if that makes it work. If it does,
have fun tweaking SELinux policies :-)<br>
</p>
<p>HTH,</p>
<p>Brian.<br>
</p>
</body>
</html>