On Tue, 14 Jul 2026 at 03:40, Left Right <[email protected]> wrote:
> To comment on how read-only directory behaves on Linux: it doesn't
> work the way you suggest it should. At least not on Ext4 (I didn't try
> other filesystems). Here's what actually happens:
>
> * You can create files in a read-only directory.

Erm no, that's flat out false. You cannot create files in a read-only directory.

> * You can modify, read or delete files in a read-only directory.

Modify, yes. That isn't changing the directory, so it isn't affected.
Read, of course. There's nothing about "read-only directory" that says
you shouldn't be able to read the files in it.

Delete? Like with creating files, that is flat out false.

> * You can mount or unmount volumes in the read-only directory.

So? Mounting a volume isn't changing the parent directory.

> * You can't list a read-only directory.

And that's another falsehood. I don't know where you're getting your
information from, but maybe actually TRY IT before you shoot your
mouth off.

rosuav@sikorsky:~/tmp/readonly$ ls
test  testdir
rosuav@sikorsky:~/tmp/readonly$ chmod -w .
rosuav@sikorsky:~/tmp/readonly$ rm test
rm: cannot remove 'test': Permission denied
rosuav@sikorsky:~/tmp/readonly$ touch othertest
touch: cannot touch 'othertest': Permission denied
rosuav@sikorsky:~/tmp/readonly$ touch test
rosuav@sikorsky:~/tmp/readonly$ sshfs traal: testdir
rosuav@sikorsky:~/tmp/readonly$

Or maybe you're lying through your teeth and I should just block you already.

ChrisA
-- 
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to