[Bug 880531] [NEW] DHCP Server does not execute external commands
Michael Weinert
880531 at bugs.launchpad.net
Sun Oct 23 20:03:38 UTC 2011
Public bug reported:
Ubuntu LTS 8.04 DHCP-Server does not execute external commands with permission denied.
Compiling original isc-server and running the same config and parameters the external commands are executed.
Sample external-command echo:
on commit {
set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
set ClientName = pick-first-value(option host-name, host-decl-name, config-option host-name, "");
log(concat("Commit: IP: ", ClientIP, " Mac: ", ClientMac, " Name: ", ClientName));
execute("/tmp/echo","Hallo >>/tmp/data");
}
Error:
Oct 23 21:36:38 vdhcp dhcpd: Unable to execute /tmp/echo: Permission denied
Thanks for the good work.
** Affects: isc-dhcp (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/880531
Title:
DHCP Server does not execute external commands
Status in “isc-dhcp” package in Ubuntu:
New
Bug description:
Ubuntu LTS 8.04 DHCP-Server does not execute external commands with permission denied.
Compiling original isc-server and running the same config and parameters the external commands are executed.
Sample external-command echo:
on commit {
set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
set ClientName = pick-first-value(option host-name, host-decl-name, config-option host-name, "");
log(concat("Commit: IP: ", ClientIP, " Mac: ", ClientMac, " Name: ", ClientName));
execute("/tmp/echo","Hallo >>/tmp/data");
}
Error:
Oct 23 21:36:38 vdhcp dhcpd: Unable to execute /tmp/echo: Permission denied
Thanks for the good work.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/880531/+subscriptions
More information about the foundations-bugs
mailing list