httpd-modsec2_debug.log: Operation not permitted

Swe Gill swegill at gmail.com
Thu Jan 13 22:08:34 UTC 2011


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 <xaero at xaerolimit.net> wrote:

> On Thu, Jan 13, 2011 at 12:00 PM, Swe Gill <swegill at gmail.com> 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


More information about the freebsd-questions mailing list