[lkml]   [2000]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: permissions not honoured by /bin/pwd aka getcwd
On Thu, 24 Feb 2000, Harald Kirsch wrote:

> Why is /bin/pwd (or getcwd) allowed to return an output in the following
> command sequence?
> % mkdir -p really/closed; cd really/closed; chmod 000 ..; /bin/pwd
> /home1_phys/kir/sunHome/tmp/really/closed
> Harald Kirsch

Because permissions don't prevent you from reading a directory.

Dick Johnson

Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.078 / U:1.840 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site