From owner-freebsd-stable@freebsd.org Tue Aug 18 14:15:26 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43E0A9BC80A for ; Tue, 18 Aug 2015 14:15:26 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 1F69CBD1 for ; Tue, 18 Aug 2015 14:15:25 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from lowell-desk.lan (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 1483A33C1E; Tue, 18 Aug 2015 10:15:20 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id E54A839819; Tue, 18 Aug 2015 10:15:18 -0400 (EDT) From: Lowell Gilbert To: Marko =?utf-8?Q?Cupa=C4=87?= Cc: FreeBSD Stable Subject: Re: ping from web application References: <20150818150924.5e9bef04@efreet> Reply-To: FreeBSD Stable Date: Tue, 18 Aug 2015 10:15:18 -0400 In-Reply-To: <20150818150924.5e9bef04@efreet> ("Marko =?utf-8?Q?Cupa=C4=87?= =?utf-8?Q?=22's?= message of "Tue, 18 Aug 2015 15:09:24 +0200") Message-ID: <444mjwisy1.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 14:15:26 -0000 Marko Cupa=C4=87 writes: > I use web applicaton (net-mgmt/phpipam) which should have the ability > to check hosts' availability via ping. I can even specify path to ping > executable. > > This functionality does not work on FreeBSD by default, and suggested > workaround is to set setuid bit on /sbin/ping. > > I don't like to modify permissions of base files. Is there an > alternative solution? e.g. a port? In what way does ping(8) not work? A look at its error output should tell you what the problem is. Additionally, the standard permissions on /sbin/ping *are* suid root. It certainly won't work if you've changed that, so just change it back. And yes, there are other ping programs present, including some with pretty graphical web page UIs. But there's no reason that PHP should have trouble calling /sbin/ping.