I have a file that is in some bad state. Here is an ls -l: # ls -l total 32 -rw-r--r-- 1 root 24576 3222302580 Apr 6 1937 kdebase.desktop If I try to delete it I get an error: # rm kdebase.desktop rm: cannot unlink `kdebase.desktop': Operation not permitted e2fsck on the filesystem finds no errors. Can anyone tell me how to get rid of this beast? -- Robert C. Paulsen, Jr. robert@paulsenonline.net
Are you root when you try to delete it? söndagen den 28 april 2002 04.19 skrev Robert C. Paulsen Jr.: :: I have a file that is in some bad state. Here is an ls -l: :: :: # ls -l :: total 32 :: -rw-r--r-- 1 root 24576 3222302580 Apr 6 1937 :: kdebase.desktop :: :: If I try to delete it I get an error: :: :: # rm kdebase.desktop :: rm: cannot unlink `kdebase.desktop': Operation not permitted :: :: e2fsck on the filesystem finds no errors. :: :: Can anyone tell me how to get rid of this beast? -- Another good night not to sleep in a eucalyptus tree.
Is this on an ext2 partition or reiserfs? On Sat, 27 Apr 2002, Robert C. Paulsen Jr. wrote:
I have a file that is in some bad state. Here is an ls -l:
# ls -l total 32 -rw-r--r-- 1 root 24576 3222302580 Apr 6 1937 kdebase.desktop
If I try to delete it I get an error:
# rm kdebase.desktop rm: cannot unlink `kdebase.desktop': Operation not permitted
e2fsck on the filesystem finds no errors.
Can anyone tell me how to get rid of this beast?
-- ------------------- Roger Whittaker SuSE Linux Ltd The Kinetic Centre Theobald Street Borehamwood Herts WD6 4PJ ------------------ 020 8387 1482 ------------------ roger@suse.co.uk ------------------
Robert C. Paulsen Jr. wrote:
I have a file that is in some bad state. Here is an ls -l:
# ls -l total 32 -rw-r--r-- 1 root 24576 3222302580 Apr 6 1937 kdebase.desktop
If I try to delete it I get an error:
# rm kdebase.desktop rm: cannot unlink `kdebase.desktop': Operation not permitted
Do "lsattr kdebase.desktop". Is the the "i" attribute set? If so, do "chattr -i kdebase.desktop", and you'll be able to remove the file. Paul.
On Sun, Apr 28, 2002 at 01:28:05PM +0200, Paul Uiterlinden wrote:
Robert C. Paulsen Jr. wrote:
I have a file that is in some bad state. Here is an ls -l:
# ls -l total 32 -rw-r--r-- 1 root 24576 3222302580 Apr 6 1937 kdebase.desktop
If I try to delete it I get an error:
# rm kdebase.desktop rm: cannot unlink `kdebase.desktop': Operation not permitted
Do "lsattr kdebase.desktop". Is the the "i" attribute set? If so, do "chattr -i kdebase.desktop", and you'll be able to remove the file.
That was it. Well, almost -- it wasn't the "i" attribute but the "a" (append only) attribute. Thanks. And thanks to all the others who took the time to reply with good suggestions. -- Robert C. Paulsen, Jr. robert@paulsenonline.net
participants (4)
-
Anders Dahlqvist
-
Paul Uiterlinden
-
Robert C. Paulsen Jr.
-
Roger Whittaker