239 points · by deafcalculus · 9y ago · 63 comments
Thanks!!
It's funny how easily I suffer tiny papercuts that way, it should be obvious "there's a better way".
[dozzie@zorn /srv]$ ls -ld foo
drwxrwxrwx 2 root wheel uarch 2 Nov 21 12:57 foo/
[dozzie@zorn /srv]$ touch foo/nabla
[dozzie@zorn /srv]$ ls -l foo/nabla
-rw-r--r-- 1 dozzie wheel uarch 0 Nov 21 12:58 foo/nabla
[dozzie@zorn /srv]$ id
uid=1001(dozzie) gid=1001(dozzie) groups=1001(dozzie)
[dozzie@zorn /srv]$ uname -s -r
FreeBSD 11.0-RELEASE-p1
This is called "BSD semantics". You can get the same behaviour with
appropriate mount option for Ext2/3/4 and XFS.addgroup && newgrp
EDIT: Seems a Firefox related bug, i noticed this strange behavior with other websites inc. Stack Overflow since then. Will investigate asap.
This doesn't make sense.
I agree the most likely explanation is accidentally putting the d in there in the editing process.
$ ls -l
drwxr-xr-x 2 USER GROUP 4096 Nov 21 11:49 file.txt
$ chmod -xw file.txt
$ for i in {1..180}; do touch file.txt/long_name_$i; done
$ ls -l
dr--r--r-- 2 USER GROUP 12288 Nov 21 11:50 file.txt
File size is a bit off, but that's based on sector size and may be separately configurable - that's a bit beyond my knowledge.
"So, for example, if a process is owned by the julia user and julia is in the awesome group, then the process would be allowed to read this file."