From owner-freebsd-questions@FreeBSD.ORG Thu Jan 13 22:08:34 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89DFD106566C for ; Thu, 13 Jan 2011 22:08:34 +0000 (UTC) (envelope-from swegill@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4ADD78FC14 for ; Thu, 13 Jan 2011 22:08:34 +0000 (UTC) Received: by iwn39 with SMTP id 39so1966780iwn.13 for ; Thu, 13 Jan 2011 14:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=iapMg+V6golNY7QjFZoDtAMEt1X5HLzzDoty0KAZWUo=; b=f3uVgsIl75DmVC+Bi6aSJiNFF74w2j3qOrZvaTLrL7JwQx8TbF5VgzDOe7xz4XYlsF UbqTMVm+pT8fRyMJkU5EQ1LAVSkMr4UpwsclDqo9ur2aSSrS89THpGM9qMko2ky+vKjU E6rOvQ3694mr8lyeDG7STrT/3jxCfwLll2IAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JQwF6Z7/aG06zocmZ/2qZiyyDgVTXec9tXmYy6hegMNInN+ngWHPGeNCqUNvYxVV8G RJ6V7+CdB68Jj8aBXvTcvKxMxrvbMZt6EvHENK9RqHESriZrX7PSATzEh9li7cNhSEN7 +vAMDTi8U56P9ojMqP9fA88FQhkNK5lrwshKY= MIME-Version: 1.0 Received: by 10.42.180.66 with SMTP id bt2mr3055379icb.326.1294956513592; Thu, 13 Jan 2011 14:08:33 -0800 (PST) Received: by 10.42.180.129 with HTTP; Thu, 13 Jan 2011 14:08:33 -0800 (PST) In-Reply-To: References: <000301cbb307$49788810$dc699830$@com> Date: Thu, 13 Jan 2011 23:08:33 +0100 Message-ID: From: Swe Gill To: Chris Brennan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Pegasus Mc Cleaft , freebsd-questions@freebsd.org Subject: Re: httpd-modsec2_debug.log: Operation not permitted 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: Thu, 13 Jan 2011 22:08:34 -0000 That is the problem. One file sizes upto 50GB and other 3 GB... 52872944 -rw-rw---- 1 root wheel 50G Jan 13 22:51 httpd-modsec2_audit.log 3320928 -rw-rw---- 1 root wheel 3.2G Jan 13 22:51 httpd-modsec2_debug.log I am just standing nowhere to remove the files.... have tried by setting flags, changing modes.... all as a root but no luck yet... Any help? /S On Thu, Jan 13, 2011 at 6:20 PM, Chris Brennan wrote: > On Thu, Jan 13, 2011 at 12:00 PM, Swe Gill wrote: > >> Hi Chris >> >> I am applying these commands as root.... but no help... >> >> > What's the size of the log file? > > ls -lsha /var/log/ | grep modsec2 > > I'm not sure but I think you need *SOME* free space to delete. If that is > the case, move the log to a new device, then delete it from the target > device. Alternatively you could compress the log and target it to a new > device, giving you at least a backup. > -- With best regards /S