I'm struggling with an issue I can find a lot of information on the internet, but unfortunately no solution.
I need to offer a SFTP connection to a Windows Server. The protocol and the OS is fixed, unfortunately.
So I installed openSSH and SFTP works pretty fine with it.
But my issue is the very strict requirement on the permissions for the authorized_keys file within the sftp users profile. As soon as more users than the sftp users do have permissions for this folder/file, openSSH will stop working.
But in productive work, this will happen (and it already happened). E.g. if somebody wants to add a key he will open that folder with his server admin account, he will be asked to gain permissions, he will say "yes", and there you go: it's broken. It's simply not possible to but all risks into some kind of documentation, therefore we have an important service running that just breaks if you open a specific folder.
So, I'm looking for ideas and best practices: Do you have any idea how we could prevent this behaviour? Sure, worst case I could run a script X times a day to set the proper permissions, but obviously this does not feel right.
Thanks a lot!