lkml.org 
[lkml]   [2007]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: wierd file perms
Jan Engelhardt wrote:
> On Oct 14 2007 09:27, Mark Lord wrote:
>> Jan-Benedict Glaw wrote:
>>> On Sat, 2007-10-13 22:40:23 +0530, vignesh babu <vigneshbabu@gmail.com>
>>> wrote:
>>>> I was surprised and did an ls -l on the files and guess what I found:
>>>>
>>>> total 0
>>>> ?--------- ? ? ? ? ? fcntl.c
>>>> ?--------- ? ? ? ? ? fifo.c
>>>> ?--------- ? ? ? ? ? filesystems.c
>>>> ?--------- ? ? ? ? ? file_table.c
>>>> ?--------- ? ? ? ? ? freevxfs
>>>>
>>>> So end result is that, Im not able to delete the files or change perms
>>>> or ownership even as root.
>>> Most probably, your filesystem is broken and needs a fsck.
>> No, this is perfectly normal behaviour, for when a directory
>> has READ permissions but not EXECUTE permissions.
>
> Er, close.
>
> 16:02 ichi:/dev/shm > md a
> 16:02 ichi:/dev/shm > touch a/b
> 16:02 ichi:/dev/shm > chmod 644 a
> 16:02 ichi:/dev/shm > ls -l a
> /bin/ls: cannot access a/b: Permission denied
> total 0
> -????????? ? ? ? ? ? b
> 16:02 ichi:/dev/shm > ls --version
> ls (GNU coreutils) 6.9
>
>
> There is a difference .. "-?????????" vs "?---------".

That's just a version difference for GNU ls.
Here, with ls (GNU coreutils) 5.97 it gives this:

?--------- ? ? ? ? ? a/b


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-10-14 22:05    [W:0.442 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site