Here is the general idea of what we are needing:
SFTP server for clients, each client cannot see the other clients folders, they must be locked into only their own folder. (I have this working)
Super user that can see all of the client folders that is controlled by our company (this half works). The super user must be able to upload and download files to the client folders for the clients to receive (this does not work).
I have configured SFTP using openssh, with the many tutorials found on Google. I have put clients into an ftpuser group, locked that group into a home directory of /home/company/client. I have made another group called masterftp, this is for our company, it is locked into a home directory of /home/company to allow for access to each of the client folders.
This is where the problems begin. The company account can download, but cannot upload. If I change permissions to 770 within the client folder, everything works, unless the clients or company user create a new folder, which then requires the same permissions change to take place. This server will see a lot of traffic, so manually changing the permissions per folder (including each subfolder) would be a full time job. Each user is created with no shell, so they only have sftp access.
Is there a program I am not finding out there that will allow me to do this, without having to dive into scripts put into cron jobs for this to take place?
Any help is appreciated!
What I am using: ubuntu server 12.04 LTS, OpenSSH-server.
Bookmarks