On Wed, Sep 27, 2000 at 12:25:06PM -0500, Ben Beuchler wrote:
> On Wed, Sep 27, 2000 at 10:41:03AM -0600, Bruce Guenter wrote:
> > Just to be pedantic, The 'r' bit is for listing the directory, but the
> > 'x' bit controls access to the files in the directory. So, qmail would
> > have been able to list the files but not open them.
>
> petra:~$ ls -ld testing/
> dr--r--r-- 2 insyte users 4096 Sep 27 12:18 testing/
> petra:~$ ls testing/
> /bin/ls: testing/MegabitServiceCenter: Permission denied
I think your "ls" is trying to stat the files when it lists the files,
so that it can put a '/', '*', or '@' after them. Is "ls" aliased to
"ls -F"?
> petra:~$ chmod 555 testing/
> petra:~$ ls -ld testing/
> dr-xr-xr-x 2 insyte users 4096 Sep 27 12:18 testing/
> petra:~$ ls -l testing/
> total 4
> -rw-r--r-- 1 insyte users 32 Sep 27 12:18 StupidTestFile
$ mkdir testing
$ echo hello >testing/foo
$ chmod 555 testing
$ \ls -ld testing
dr-xr-xr-x 2 bguenter users 4096 Sep 28 09:50 testing
$ \ls testing
foo
$ chmod 111 testing
$ \ls -ld testing
d--x--x--x 2 bguenter users 4096 Sep 28 09:50 testing
$ \ls testing
ls: testing: Permission denied
$ cat testing/foo
hello
$ chmod 444 testing
$ \ls -ld testing
dr--r--r-- 2 bguenter users 4096 Sep 28 09:50 testing
$ \ls testing
foo
$ cat testing/foo
cat: testing/foo: Permission denied
--
Bruce Guenter <[EMAIL PROTECTED]> http://em.ca/~bruceg/
PGP signature