Why is FreeNAS setting all files in directory to group owner by default ??!

Status
Not open for further replies.

DaveY

Contributor
Joined
Dec 1, 2014
Messages
141
DISREGARD, please delete thread. Looks like this indeed is the default behavior.

During testing, it was discovered that any file created under a directory owned by wheel will have the group id set to wheel by default; similar to having the group id sticky bit set. This should not be the normal UNIX file system behavior. Usually if a user has write permission to the directory, the file created by that user should have the user's uid and the user's primary group id.

Is this just a bug or is this the preferred behavior for FreeNAS/FreeBSD/ZFS? Needless to say, this breaks a lot of things when you're sharing a directory with many users (/tmp for example), but wanting each user to maintain access to only their individual files.

Not to mention files will lose their original group owner info if you're using FreeNAS as a backup server.

????
 
Last edited:

John Duino

Cadet
Joined
Mar 13, 2015
Messages
5
So DaveY and I work together...just found this doc:
https://www.freebsd.org/cgi/man.cgi?query=open&sektion=2

In which it states, "When a new file is created it is given the group of the directory which contains it."

How does this make any practical sense? Sure there are times you would want this, but not as an always-on. Is there any way of over-rideing this behavious?
 
Status
Not open for further replies.
Top