From owner-freebsd-questions@FreeBSD.ORG Mon Jan 9 07:00:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD51016A41F for ; Mon, 9 Jan 2006 07:00:37 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC46243D45 for ; Mon, 9 Jan 2006 07:00:35 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id k0970Y3n017440; Mon, 9 Jan 2006 09:00:34 +0200 Received: by flame.pc (Postfix, from userid 1001) id B9FEF1181A; Mon, 9 Jan 2006 08:59:08 +0200 (EET) Date: Mon, 9 Jan 2006 08:59:08 +0200 From: Giorgos Keramidas To: Paulino Calderon Message-ID: <20060109065908.GA1026@flame.pc> References: <8dc358df0601082157m241a2c2ejce7617aefa09352d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8dc358df0601082157m241a2c2ejce7617aefa09352d@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Cannot remove old log files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2006 07:00:37 -0000 On 2006-01-08 21:57, Paulino Calderon wrote: > Hello. > I am currently moving to a new log administration policy, the problem > is that there are some old logs that I would like to delete but I > can't, the error is the typical "Operation not permitted" although I > am trying to do this as root, the file's permissions are ok and there > are no special file flag activated or anything, any ideas? > > suckea# uname -a > FreeBSD suckea.com 5.3-SECURITY FreeBSD 5.3-SECURITY #0: Wed Jul 20 > 06:22:23 UTC 2005 > root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 > > mybox# ls -lo > [snip] > -rwx------ 1 root wheel - 78 Dec 6 15:00 auth.log.zzpKVF1 > -rwx------ 1 root wheel - 78 Jan 3 05:00 auth.log.zzr4dZD > -rwx------ 1 root wheel - 78 Jan 4 17:00 auth.log.zzyP5R0 > > mybox# rm -rf auth.log.* > [snip] > rm: auth.log.zzr4dZD: Operation not permitted > rm: auth.log.zzyP5R0: Operation not permitted Is the partition mounted read-write? Can you run ktrace on this command and post the output?