I have successfully setup and configured the SFTP plugin.
I am using SFTP to remote mont shares with SSHFS.
In the Lan at home I use CIFS/SMB for mounting shares.
Nearly everything works like a charme!
The only problemm ist file access rights.
When I create files on shares mounted with CIFS/SMB owner is root and group has RWX (read and write).
When I create files on shares mounted with SFTP owner is sftpuser and group has only R (read) access.
The problem now occours when I have created files remote (SSHFS/SFTP mount) come back home (CIFS/SMB mount of the same share) and want to edit the file which I created remote (with SFTP/SSHFS). - I cant modify files.
SMB shares are own by root (not depanding on the Luser used to login to SAMBA, well used to SMB mount the specific share).
I see two things which could solve the trouble:
1. SFTP plugin/service schould use (run as) root
or
2. SFTP schould not cut of rights for the group
I guesss SFTP is using ssome umask mask which cuts of write access for the group. I also know there schould be an option to set umask for sftp; but I do not know how to configure this in the SFTP Plugin. (Other plugins e.g. transmission have umask seeting in the config GUI as far as I have read in some threads here).
Any help appreciated!
Thanx in advance!
Greetings from Bavaria - Jochen
P.S.:.: In general ofcourse if I set privilege (and ACL) for a specific share to a specific user and enable the user in a service e.g. SAMBA, SFTP, FTP,... this user schould have access to the share exactly as set with privileges, regardless of the protocoll (SMB, SSH/SFTP,...) he/she is accessing the share. IMHO this would be one advantage of using an Web GUI NAS instad of setting up a just CLI operated, manualy configured debian server.