lkml.org 
[lkml]   [2000]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: permissions not honoured by /bin/pwd aka getcwd


On Fri, 25 Feb 2000, Vojtech Pavlik wrote:

> On Fri, Feb 25, 2000 at 11:00:19AM +0300, Khimenko Victor wrote:
>
> > > Remember, directory permissions are NOT recursive. In this example,
> > > cd foo/bat
> >
> > > will still work.
> >
> > Of course it will not.
> >
> > > you need to chmod -R if that's what you want to do :)
> >
> > It depends from what you REALLY want to do :-) If you want to cd in foo/bat
> > you need eXecute permissions for foo and bat. If you want ls foo/bat then
> > Read permissions for bat are mandatory but foo can have only eXecute
> > permissions. 0 means "no permissions at all".
>
> -R means Recursive, not read. ;)
>
Exactly :-) It you DO NOT need recursive change here:
-- cut --
[khim@dell khim]$ mkdir -p foo/bar
[khim@dell khim]$ chmod 0 foo
[khim@dell khim]$ LC_ALL=C ls foo/bar
ls: foo/bar: Permission denied
-- cut --


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

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