News for hackers. Stuff that matters.
Re:How do groups work on Linux? by jwilk on Tuesday November 21, 2017 @07:07AM (#15747306)
What filesystem was that? And why is this behavior filesystem-specific?
Re:How do groups work on Linux? by dozzie on Tuesday November 21, 2017 @07:57AM (#15747555)
Not what filesystem, it's what OS. FreeBSD. And ZFS, but UFS works the same.
Re:How do groups work on Linux? by jwilk on Tuesday November 21, 2017 @11:02AM (#15748751)
So why did you mentation "Ext2/3/4 and XFS" if filesystem doesn't matter?
Re:How do groups work on Linux? by dozzie on Tuesday November 21, 2017 @11:19AM (#15748905)
I don't see what you don't understand. I demonstrated that on FreeBSD created file inherits the group of its parent directory even without SGID, i.e. that FreeBSD exhibits BSD semantics. I also added that if you can have BSD semantics on Ext2/3/4 and XFS if you mount them under Linux with appropriate options.
Re:How do groups work on Linux? by drvdevd on Tuesday November 21, 2017 @01:01PM (#15750008)
You’re getting downvoted a bunch here, but I believe your basic point is valid. To take it back to the GP: SGID bit and other such OS and/or filesystem specific semantics are not the best measurement of someone’s overall UNIX understanding.

Now, IMO asking someone if they understand what the difference is between chmod <octal notation> VS chmod <friendly notation> is and why it exists is a bit more telling, because this touches down on what interface most unix filesystems try to present and also how they’re implemented to a degree.

The specifics on any given system are just a manpage away but the general understanding only really comes from having absorbed some actual unix interactions.

And certainly knowing more than just Linux should get one bonus points...

Re:How do groups work on Linux? by jwilk on Tuesday November 21, 2017 @11:35AM (#15749089)
No, you didn't say anything about Linux.
Re:How do groups work on Linux? by laumars on Tuesday November 21, 2017 @08:47AM (#15747790)
I could be wrong but I thought the file system's "drivers" did the handling of file system permissions rather than the OS / kernel? Or at least this was my experience when playing around with FUSE on hobby projects.