mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Lord <lkml@rtr.ca>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: vignesh babu <vigneshbabu@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: wierd file perms
Date: Sun, 14 Oct 2007 16:01:47 -0400	[thread overview]
Message-ID: <471275AB.7090502@rtr.ca> (raw)
In-Reply-To: <Pine.LNX.4.64.0710141602520.22801@fbirervta.pbzchgretzou.qr>

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



  reply	other threads:[~2007-10-14 20:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-13 17:10 vignesh babu
2007-10-13 17:28 ` Jan-Benedict Glaw
2007-10-14 12:30   ` Bauke Jan Douma
2007-10-14 12:42     ` Jan Engelhardt
2007-10-14 13:27   ` Mark Lord
2007-10-14 14:05     ` Jan Engelhardt
2007-10-14 20:01       ` Mark Lord [this message]
2007-10-15  1:29         ` vignesh babu
2007-10-14 13:29 ` Mark Lord
2007-10-14 13:31   ` Jan-Benedict Glaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471275AB.7090502@rtr.ca \
    --to=lkml@rtr.ca \
    --cc=jengelh@computergmbh.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vigneshbabu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®