[Pdns-users] Pipebackend can't run backend

Brian Candler b.candler at pobox.com
Thu Jan 21 21:07:31 UTC 2021


On 21/01/2021 20:48, Dan Campbell - dan--- via Pdns-users wrote:
>
> 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.
>
> The backend is a python script that runs from the command line, but 
> pdns_server fails to start and give the following error:
>
> [PIPEBackend] Unable to launch, fatal argument error: Command 
> '/home/webapps/dns/bin/backend.py' cannot be executed: Permission>
>
> Caught an exception instantiating a backend: Command 
> '/home/webapps/dns/bin/backend.py' cannot be executed: Permission denied
>
> Cleaning up
>
> Distributor caught fatal exception: Command 
> '/home/webapps/dns/bin/backend.py' cannot be executed: Permission denied
>
> The permissions on the script and all directories in the path are 755 …
>
> Any ideas about why pdns_server (running under the pdns id) does not 
> have permissions to run a program with 755 permissions?
>
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.

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

HTH,

Brian.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20210121/9668d1fc/attachment.htm>


More information about the Pdns-users mailing list