Discussion:
[問題]檔案無法刪除
(时间太久无法回复)
ZZzz..
2006-10-14 16:18:45 UTC
Permalink
小弟最近遇到了一個檔案, 沒有辦法刪除,
不知問題所在, 請教一下各位大哥們.
煩請幫忙解答. 謝謝.

有幾點徵狀:
1. 以下的操作已經使用 root 帳號
2. 同個目錄下的其它檔案可以正常刪除
3. 操作過程如下:

# rm file
rm: remove write-protected regular file `file'? y
rm: cannot remove `file': Operation not permitted

# ls -ld file .
drwxr-xr-x 2 root root 4096 Oct 3 21:03 .
-rwxr-xr-x 1 user1 usergrp1 39696 Feb 19 2003 file
--
※ Origin: SayYA 資訊站 <bbs.sayya.org> 
◆ From: 61-230-183-217.dynamic.hinet.net
小州
2006-10-14 18:01:42 UTC
Permalink
※ 引述《crystal (ZZzz..)》之銘言:
Post by ZZzz..
小弟最近遇到了一個檔案, 沒有辦法刪除,
不知問題所在, 請教一下各位大哥們.
煩請幫忙解答. 謝謝.
1. 以下的操作已經使用 root 帳號
2. 同個目錄下的其它檔案可以正常刪除
# rm file
rm: remove write-protected regular file `file'? y
rm: cannot remove `file': Operation not permitted
# ls -ld file .
drwxr-xr-x 2 root root 4096 Oct 3 21:03 .
-rwxr-xr-x 1 user1 usergrp1 39696 Feb 19 2003 file
lsattr file

有特殊屬性的話,用 chattr 去除掉後即可刪除。

--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

現代人普遍的現象: 「小學而大遺」、「捨本而逐末」
「以偏而概全」、「因噎而廢食」
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
※ Origin: SayYA 資訊站 <bbs.sayya.org> 
◆ From: kendlee.sayya.org
ZZzz..
2006-10-15 00:07:34 UTC
Permalink
※ 引述《kenduest (小州)》之銘言:
Post by 小州
Post by ZZzz..
小弟最近遇到了一個檔案, 沒有辦法刪除,
1. 以下的操作已經使用 root 帳號
2. 同個目錄下的其它檔案可以正常刪除
lsattr file
有特殊屬性的話,用 chattr 去除掉後即可刪除。
是的, 問題確實在這.
謝謝回答
--
※ Origin: SayYA 資訊站 <bbs.sayya.org> 
◆ From: 61-230-180-165.dynamic.hinet.net

Loading...