Messages in this thread | | | Date | Thu, 24 Feb 2000 14:30:50 +0100 | From | Harald Kirsch <> | Subject | Re: permissions not honoured by /bin/pwd aka getcwd |
| |
On Thu, Feb 24, 2000 at 08:18:17AM -0500, Richard B. Johnson wrote: > 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.
Strange answer. What is `chmod a-r some/directory' good for if not to forbid reading a directory?
Harald Kirsch
-- -------------------------------------------------+------------------ Harald Kirsch, kir@iitb.fhg.de, +49 721 6091 369 | FhG/IITB, Fraunhoferstr.1, 76131 Karlsruhe |
- 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/
| |