SUMMARY: Local file cannot be deleted by root

From: Aldridge, Robert E. <REAldridge_at_mcdermott.com>
Date: Wed, 09 Jan 2002 15:41:09 -0600

Quick resolution...

I renamed the file (mv t abc) and then I could do (rm abc)

# ls -la
total 20
drwxrwxr-x 2 fortino nm 8192 Jan 9 15:57 .
drwxrwxr-x 4 fortino nm 8192 Jan 9 15:56 ..
-rwxrwxrwx 23 fortino nm 3492 Mar 2 1999 t

# mv t abc
# ls -la
total 20
drwxrwxr-x 2 fortino nm 8192 Jan 9 16:34 .
drwxrwxr-x 4 fortino nm 8192 Jan 9 15:56 ..
-rwxrwxrwx 23 fortino nm 3492 Mar 2 1999 abc
# rm abc
# ls


I don't understand it though! No ERROR message was returned, which is very
confusing.
The environment is Tru64 5.1, Patch kit 3, on AdvFS


Thanks for the suggestions, which included:
---------------
Delete it via the inode. There may be unseen characters after the name. In
the mdfs-scl directory, do the following;

. ls -li (note the inode)
. find . -inum INODENUM -exec rm -f '{}' \;

where INODENUM is the inode number of the 't' file.
----------------
I wonder if there are any invisible characters in the filename? Try

    od -c . |more

[No, there were no strange characters, because I could rename the file just
fine.]
-----------------



-----Original Message-----
From: Aldridge, Robert E. [mailto:REAldridge_at_mcdermott.com]
Sent: Wednesday, January 09, 2002 4:23 PM
To: Tru64-Unix-Managers
Subject: Local file cannot be deleted by root
Importance: Low


Tru64 Managers,

I have some files that cannot be deleted, even by root. The files are
mounted locally (not NFS).

Here is one of the files:
        -rwxrwxrwx 23 103 42 3492 Mar 2 1999 t

The directory tree is quite deep (10 levels) and I'm wondering if that has
something to do with the problem...


# pwd /nm/projects/rtf/ljc4/wjo/bge-loca/vol-2-analyses/relap/mdfs/mdfs-scl


Suggestions, please?

Thanks

Rob Aldridge
Alliance, Ohio, US
Received on Wed Jan 09 2002 - 21:54:09 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT