Re: rw- directory mode : different ls behavior

2024-09-17 Thread Todd C . Miller
On Tue, 17 Sep 2024 09:43:27 +0200, tomas.ri...@tutanota.com wrote: > Hello, I am studying OpenBSD and I am currently working on file mods and the > chmod(1) command. In that context, I have come across a behavior that I don't > understand. My test directory contains two files: ll.out and power.

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Zé Loff
On Tue, Sep 17, 2024 at 03:22:58PM +0200, Otto Moerbeek wrote: > On Tue, Sep 17, 2024 at 10:40:23AM +0100, Zé Loff wrote: > > > On Tue, Sep 17, 2024 at 10:56:27AM +0200, Denis Bodor wrote: > > > On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > > > > I would expect that w

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Otto Moerbeek
On Tue, Sep 17, 2024 at 10:40:23AM +0100, Zé Loff wrote: > On Tue, Sep 17, 2024 at 10:56:27AM +0200, Denis Bodor wrote: > > On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > > > I would expect that without the 'x' bit, the directory is not searchable > > > and I won't be

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Zé Loff
On Tue, Sep 17, 2024 at 10:56:27AM +0200, Denis Bodor wrote: > On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > > I would expect that without the 'x' bit, the directory is not searchable > > and I won't be able to list its contents. But in fact I can, unless I > > use a l

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Denis Bodor
On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > I would expect that without the 'x' bit, the directory is not searchable > and I won't be able to list its contents. But in fact I can, unless I > use a long format (-l, -g or -n). > > Can someone please explain the above b

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Zé Loff
On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > Hello, I am studying OpenBSD and I am currently working on file mods and the > chmod(1) command. In that context, I have come across a behavior that I don't > understand. My test directory contains two files: ll.out and p

rw- directory mode : different ls behavior

2024-09-17 Thread tomas . rippl
Hello, I am studying OpenBSD and I am currently working on file mods and the chmod(1) command. In that context, I have come across a behavior that I don't understand. My test directory contains two files: ll.out and power.exe. $ chmod 600 my-test-dir $ ls -ld my-test-dir/ drw---  2  user  us