We need a PHP Script that will be used to create SFTP accounts using OpenSSH on a Centos server that will be able to restrict the users to their personal folders on the server such as /home/<username>
The users should not see any other folder of files on the server apart from his personal folder when logged in. Also we need the php script to be able to allow us set quota in MB/GB on each user folder when creating the accounts via the php script.
Work Already done on server:
1. We have upgraded the OpenSSH on the server to version 5.4 and configured the server to use the new version of the openSSH in order to support this work. But the programmer will need to check this to confirm that all has been done properly.
2. We have also installed SSH2 Extension for PHP to enable running root/SSH commands in the PHP script to be developed.
Note: The folder Quota system must be working fine and the users should have full write/read access to their personal folders.