How to properly set default permissions inheritance on linux server with windows clients
I'm trying to set up a file server in our office and am having issues with default file permissions being inherited from the parent directory. I *want* the directory permissions to be inherited by all directories and files created in a directory. When a user creates a file or directory within my folder, I want the user and group permissions to both be rwx...perhaps rwxrwx--- as I don't care about "other".
I've been trying setfacl, chmod g+s and others but it's just not clicking for me for some reason. setfacl seems to work and getfacl is reporting what looks to be properly:
...<br>
\# owner: nobody<br>
\# group: Employees<br>
user::rwx<br>
group::rwx<br>
other::r-x<br>
default:user:rwx<br>
default:group:rwx<br>
default:other:r--<br>
I want all group members to have rwx privileges on all files and directories made underneath our shared folder.
Here's one of my big confusions: a text file made from the terminal window on the linux server comes back with default permissions of rwxrw-r-- and a file made in the same directory by the same user account gets me a permission of rwxr--r-- when the file is created from a Windows client...neither of which is the desired outcome, but I would expect the permissions to be the same whether created locally or remotely.
Thoughts anyone? (am checking umask in samba config right now...)now...)
update: the smb.conf file was specifying a restrictive mask, thus the difference between windows and linux. I still cannot figure out why it's not setting default permissions on files created/copied in the directory though.