Chinaunix

标题: 请问这个文件如何删除? [打印本页]

作者: Raylzw    时间: 2008-05-26 13:53
标题: 请问这个文件如何删除?
[root@www httpd]# ls -al
total 2147483792
drwx------      2 root       root             4096 May 26 13:51 .
drwxr-x--x     12 root       root             4096 May 26 13:36 ..
?rwsrwsrwt  65535 4294967295 4294967295 4294967295 Feb  7  2106 access_log



[root@www httpd]# rm access_log
rm: remove write-protected weird file `access_log'? yes
rm: cannot remove `access_log': Operation not permitted
[root@www httpd]# rm -rf access_log  
rm: cannot remove `access_log': Operation not permitted

作者: ddb521    时间: 2008-05-26 13:54
提示: 作者被禁止或删除 内容自动屏蔽
作者: Raylzw    时间: 2008-05-26 13:59
标题: 回复 #2 ddb521 的帖子
首先感谢回复.

[root@www httpd]# lsattr
lsattr: Operation not supported While reading flags on ./access_log
作者: geminilinux    时间: 2008-05-26 17:46
lsattr    access_log
作者: bohemia2007    时间: 2008-05-26 18:02
估计是有进程正在调用这个文件,可以试下 lsof | grep access_log 找到调用的进程然后kill掉
作者: kenduest    时间: 2008-05-26 20:17
fs 可能故障了。

先用 cd disc 開機到 rescue mode 後用 fsck 檢查修復一下。

--
作者: MMMIX    时间: 2008-05-26 21:32
原帖由 kenduest 于 2008-5-26 20:17 发表
fs 可能故障了。

先用 cd disc 開機到 rescue mode 後用 fsck 檢查修復一下。

--

楼主一直没说他的这个文件放在什么地方,若是在只读文件系统上,自然无法删除。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2