unix quirks (chmod 000 dir)

Jim Budler jimb at amdcad.UUCP
Sun Apr 21 16:19:56 AEST 1985


In article <9938 at brl-tgr.ARPA> argv at ucb-vax.ARPA writes:
>
>    >>% mkdir foo
>    >>% chmod 000 foo
>    >>% cd foo
>    >>foo: no such file or directory
>You don't seem to understand: it shouldn't say: "no such file or directory",
>it should say: "Permission denied."  The example, was just that, an example.
>This "bug" appears all the time whenever the permission is denied, it comes
>up with the wrong error message! Try to cd into a path that you never had
>any problems with and it says that it doesn't even EXIST. Then you panic and
>call the system administrator and request a back up recovery and spend a
>lot of time and effort (sometimes even money) to get a directory replaced
>that never even went away. I just want the correct error message. Is this
>clear now?

If you don't have read permission then the directory isn't there to you.
The fact that you can see it in a listing is because you have read
permission in the parent directory.
-- 
 Jim Budler
 Advanced Micro Devices, Inc.
 (408) 749-5806
 UUCPnet: {ucbvax,decwrl,ihnp4,allegra,intelca}!amdcad!jimb
 Compuserve:	72415,1200



More information about the Comp.unix.wizards mailing list