From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 18 02:47:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F95216A400 for ; Wed, 18 Jul 2007 02:47:53 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.layeredtech.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id DA17C13C481 for ; Wed, 18 Jul 2007 02:47:50 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.vnode.org (r74-193-81-203.pfvlcmta01.grtntx.tl.dh.suddenlink.net [74.193.81.203]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id l6I2a6HE031257 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Tue, 17 Jul 2007 21:36:07 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <469D7C98.2070508@freebsd.org> Date: Tue, 17 Jul 2007 21:36:08 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.4 (X11/20070629) MIME-Version: 1.0 To: scubacuda@gmail.com References: <2b7af7c40707171804p1cfd7201v5fae4057bb95d935@mail.gmail.com> In-Reply-To: <2b7af7c40707171804p1cfd7201v5fae4057bb95d935@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Cc: freebsd-hackers@freebsd.org Subject: Re: permission denied to properly chmod'd files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 02:47:53 -0000 On 07/17/07 20:04, Rogelio Bastardo wrote: > Today while trying to create a Cacti graph (something I've been able > to do with no problems on this box before), I got a "permission > denied" error on the .rrd file that I was trying to access. > > I shelled into a FreeBSD box, only to find that the > "/usr/local/share/cacti/rrd" folder was properly chmod'd and chown'd > with the Cacti user. > > I'm relatively new to FreeBSD (compared to other distros) and > unfortunately cannot get any good information out of anyone about what > changed on this server. (It seemed to be working a few weeks ago). > > Might there be some sort of BSD version of SELinux going on here? No > one has any info on what "changed" on the box to make it not work. > I've never had this problem on Cacti on the other distros I've worked > with (mostly Debian and RHEL/CentOS) and am wondering if it is a > FreeBSD oddity that I'm not understanding. > > If FreeBSD is off the hook, then I'll go bug the Cacti crowd. Are you using NFS at all? If so, check your locking. Otherwise, some more debugging would help - can you become the cacti user, and then access it? How about doing a ktrace on the rrd process as it fails? Eric