There's a closed pull request on the Samba Samba Github repository Always use /usr/bin/env to call Perl https://github.com/samba-team/samba/pull/211 Description: ... to support systems where perl is not installed in /usr/bin/.