Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-15 Thread Carl Johnson
Swe Gill writes: > Hi Peg > > Thanks for your help by applying "ls -lao". I get following result > > -rw--- 1 root wheelsappnd 8307655937 Jan 13 10:45 debug.log > -rw--- 1 root wheelsappnd 15415 Oct 2 2009 dmesg.today > -rw-r--r-- 1 root wheel-

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-15 Thread Ian Smith
On Sat, 15 Jan 2011, Ian Smith wrote: > On Sat, 15 Jan 2011, per...@pluto.rain.com wrote: [..] > > Last I knew having a file open, even for writing, was no protection > > against its last link being removed. The _inode_ won't go away > > until the last handle is closed, but the _directory e

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-15 Thread Ian Smith
On Sat, 15 Jan 2011, per...@pluto.rain.com wrote: > Ian Smith wrote: > > > Swe, I suspect the reason you can't just delete these files is > > likely because something has them open for writing, and the system > > won't let you remove such files, naturally enough. > > Really? Must be a fa

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-15 Thread perryh
Ian Smith wrote: > Swe, I suspect the reason you can't just delete these files is > likely because something has them open for writing, and the system > won't let you remove such files, naturally enough. Really? Must be a fairly recent change -- and IMO not necessarily a good one. For one thin

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-14 Thread Ian Smith
In freebsd-questions Digest, Vol 345, Issue 9, Message: 10 On Thu, 13 Jan 2011 23:35:26 +0100 Polytropon wrote: > On Thu, 13 Jan 2011 23:08:33 +0100, Swe Gill wrote: > > That is the problem. One file sizes upto 50GB and other 3 GB... > > > > 52872944 -rw-rw 1 root wheel 50G Jan

RE: httpd-modsec2_debug.log: Operation not permitted

2011-01-14 Thread Pegasus Mc Cleaft
>> ... I believe rm (-f) still requires *SOME* free space on a device >> to delete something. That being said, do you have more then 50G >> free elsewhere on the system? Say /home (/usr/home)? If you do, mv >> the file from /var/log to /usr/home. This would effectively delete >> it from /var/log an

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-14 Thread perryh
Chris Brennan wrote: > ... I believe rm (-f) still requires *SOME* free space on a device > to delete something. That being said, do you have more then 50G > free elsewhere on the system? Say /home (/usr/home)? If you do, mv > the file from /var/log to /usr/home. This would effectively delete > i

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Polytropon
On Thu, 13 Jan 2011 23:08:33 +0100, Swe Gill wrote: > 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 >

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Chris Brennan
On Thu, Jan 13, 2011 at 5:08 PM, Swe Gill wrote: > 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

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
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 s

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Chris Brennan
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 n

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
Hi Chris I am applying these commands as root but no help... Regards /S On Thu, Jan 13, 2011 at 5:44 PM, Chris Brennan wrote: > On Thu, Jan 13, 2011 at 5:03 AM, Swe Gill wrote: > >> I just don't understand why I am unable to remove the files... >> > > Pass 'whoami' at the command prompt.

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Chris Brennan
On Thu, Jan 13, 2011 at 5:03 AM, Swe Gill wrote: > I just don't understand why I am unable to remove the files... > Pass 'whoami' at the command prompt. Are you root? If not, part of the wheel group? hth/c- ___ freebsd-questions@freebsd.org mailing li

Re: httpd-modsec2_debug.log: Operation not permitted

2011-01-13 Thread Swe Gill
Hi Peg Thanks for your help by applying "ls -lao". I get following result -rw--- 1 root wheelsappnd 8307655937 Jan 13 10:45 debug.log -rw--- 1 root wheelsappnd 15415 Oct 2 2009 dmesg.today -rw-r--r-- 1 root wheel-0 Oct 2 2009 httpd-a