I've been working on setting up a home fileserver for my family. I use samba over the LAN and SSHFS for anyone connecting via the internet. So far samba is working perfectly and SSHFS works, but files created/copied with SSHFS have the wrong permissions. I have a separate partition where files are stored with a structure like:
User A
User B
Shared
I use ACLs so that the different users can see and access but not change files in each other's folders, but everyone can see and edit files in the Shared folder. Additionally, I have set the ACL defaults such that any folders and files that are created or copied into the folders on the server inherit the proper permissions. This works fine with samba, but when I connect via SSHFS any files created or copied to the server keep the client's permissions.
Is there an option to correct this when I mount the server's drive via SSHFS? Or does SSHFS simply not support ACLs? If the latter, is there a workaround/patch/alternative?
Thanks in advance, and let me know if you need any more information.
Additional information:
All users have local (on the server) accounts
All users have the same primary group
All users can connect via SSH and SSHFS with public keys
With samba, if a client folder has, say, drwx------ permissions and I copy it to the Shared folder, it's permissions (for the contents as well) will be changed to drwXrwXrwX (which is what I want), and if copied to a User file they will change to drwXr-X---
Edit:
Tried switching back to passwords instead of public keys for SSH and SSHFS as per GaryBishop's suggestion.