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.

_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to