Re: 2.0.35 NFS directory perms bug

Olaf Titz (olaf@bigred.inka.de)
Sat, 24 Oct 1998 12:10:20 +0200


> A dir of mode 664 (drw-rw-r--) can be 'listed' with shell file completion.

It can be listed with "ls" too, on every filesystem. (Just tested on
ext2.) Plain /bin/ls without any options will simply list it, while
shell-builtin or -F or -l etc. will give a lot of complaints about
permission denied when trying to stat() each file in the directory,
which is disallowed because of the missing x flag.

> user (it isn't a user to user security issue) but is a bug.

It is no bug. Read permission on a directory means exactly that: being
able to read the directory, which is listing the file names and inode
numbers in it.

olaf

-
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/