I have a request from a data manager and I haven’t figured out how to best approach it. At his request, I have a script that creates a form to allow our public to upload files to a directory in our web site. Now the data manager would like me to grant read-write access to the upload directory to one of our employees, but not give this employee the user name, password for FTP access to the whole web site tree. This data manager thought I could just create a new user with this access just to a subdirectory somehow. I’ve been scratching my head. I can’t come up with a way to do this on Dreamhost.
Now here’s a guy that had to do something like this so he had his upload script make a copy of the file over to an FTP site. Maybe I could do this and give the employee the authentication to this new ftp account only. Or maybe I can modify this approach by skipping the move_uploaded_file step to save the uploaded file to a website sub-directory and just move the uploaded file into an FTP account with ftp_put.
Those are the two choices I can think of. Either some kind of magic file permissions to a website directory, or a script that puts an upload into an FTP account. Is there anything else I can do?