From owner-freebsd-ports@freebsd.org Thu Sep 6 11:43:48 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EAAAFF8383 for ; Thu, 6 Sep 2018 11:43:48 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns1.nethead.se", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0ED5E72AE3 for ; Thu, 6 Sep 2018 11:43:47 +0000 (UTC) (envelope-from peo@nethead.se) X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1536234219; bh=OUJYmebdeB5RzY6mfWMjlBBTo9mq7OCbyKxKs1iYphw=; h=Subject:To:References:From:Date:In-Reply-To; b=azbob4JatOFSHtJVplxXCKlitAwjqkSy7gbwecXKSbfDI8LpFYHylTjhzvYy7TNjy rr4f08NSPQS0Ui7LMpmYcCbKDLl3r27DV+onnT5L3OAo5IT2JzkPdaWeOyYIFJf9Kz OJ8dJSQkctypkSCVvkMEuPjO2QA51Aai1MlLin88= Subject: Re: Wrong log and archive permissions in Nagios To: freebsd-ports@freebsd.org References: From: Per olof Ljungmark Message-ID: <7ea82acf-e403-96ca-ce4a-311229149895@nethead.se> Date: Thu, 6 Sep 2018 13:43:36 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2018 11:43:48 -0000 Hi, On 9/6/18 12:42 PM, Andrea Venturoli wrote: > Hello. > > I run several instances of Nagios and they all share a problem: reports, > alert histories, notifications, etc... cannot be viewed due to > permission problems. > In fact all the files are owned by nagios and access is denied to user > www. Of course I can chown/chmod them, but it's not a permanent solution > as rotation or new file creation will bring the problem back. > > I see this was discussed here: > https://github.com/NagiosEnterprises/nagioscore/issues/303 > > and I understand correctly this is supposed to be fixed upstream. > Is it a problem specific to our FreeBSD port? This is interesting, which version are you on? I am on 3.5.1_11 and do not have this problem because nagios.log in /var/spool/nagios/ is owned by nagios:nagios *and* readable by (o)thers, ie. 644. //per