Setting up Pure-FTPd with admin/user permissions for same directory

Posted by modulaaron on Server Fault See other posts from Server Fault or by modulaaron
Published on 2010-02-28T02:46:51Z Indexed on 2010/04/10 4:03 UTC
Read the original article Hit count: 541

Filed under:
|
|
|

I need to set up 2 Pure-FTPd accounts - ftpuser and ftpadmin. Both will have access to a directory that contains 2 subdirectories - upload and downlaod. The permissions criteria needs to be as follows:

  • ftpuser can upload to /upload but cannot view the contents (blind drop).
  • ftpuser can download from /download but cannot write to it.
  • ftpadmin has full read/write permissions to both, including file deletion

Currently, the first two are not a problem - disabling /upload read access and /download write access for ftpuser did the job. The problem is that when a file is uploaded by ftpuser, it's permissions are set to 644, meaning that user ftpadmin can only read it (note that all FTP directories are chown'd to ftpuser:ftpadmin). How can I give ftpadmin the power he so rightfully deserves?

© Server Fault or respective owner

Related posts about ftp

Related posts about pure-ftpd