Re: x bit for dirs: misfeature?

Horst von Brand
2001-11-19T16:46:22Z

vda <vda@port.imtp.ilyichevsk.odessa.ua> said:

[...]

> > [james@dax p2i]$ ls test
> > ls: test/file: Permission denied
> > [james@dax p2i]$ ls -l test
> > ls: test/file: Permission denied
> > total 0
>
> Looks like we have different ls :-). Mine lists 'r only' dir with no
> problem.

Probably some alias. "/bin/ls test" should work, "/bin/ls -l test" won't.

> > Anyway, as Al Viro has pointed out, R!=X. It's been like that for a very
> > long time, it's deliberate, not a misfeature, and it's staying like that
> > for the foreseeable future.
>
> Yes, I see... All I can do is to add workarounds (ok,ok, 'support')
> to chmod and friends:
>
> chmod -R a+R dir - sets r for files and rx for dirs

X sets x for dirs, leaves files alone.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513