[Dnsmasq-discuss] dhcp-script on dnsmasq

Paul Smith psmith at gnu.org
Fri Apr 15 17:26:42 BST 2011


On Fri, 2011-04-15 at 11:12 -0500, Michael P. McDonnell wrote:
> Is there a secret chroot or something going on that I don't know
> about? I'm running dnsmasq 2.57 and whenever I try to run my
> dhcp-script it bombs out saying "failed to execute /tmp/post-lease.sh:
> No such file or directory"
> However, if I say "ls -l /tmp/post-lease.sh" its most definitely
> exists and its chmodded 777 just to be safe.
> 
> My relevant entry on my dnsmasq.conf is
> 
> dhcp-script=/tmp/post-lease.sh
> 
> Am I missing something important?

Just to ask the stupid question: the first line of your post-lease.sh
file uses #! and references an existing, executable file, right?

If the kernel can't exec the interpreter on your sh-bang line you get
errors like this one.


Or asked another way, can you run "/tmp/post-lease.sh" from the command
line directly?





More information about the Dnsmasq-discuss mailing list