Skip to main content

Hide files from view in ftp but still allow scripts to process content

Comments

2 comments

  • cPanelLauren
    Hello @Sunlander I am unaware of a way to do this, and allow the scripts to run as well as the users to be able to access the parent directory. The best solution to this issue is not to have the FTP user and sensitive information in the same folder, you can create an FTP user with access to a specific subdirectory with no access to the directory the sensitive information is stored in, or you may want to move the sensitive information and modify where the scripts look for it.
    0
  • Sunlander
    Hi Lauren, thanks for answering. Unfortunately I don't currently have the skills to adapt the code but will have a play. I have found a temporary solution which works for now. Basically I changed the 2 folders to permission of 311 and although they get changed to 777 during the cronjob run (which calls the script) for the rest of the time the content remains invisible. It isn't ideal but at least gives me a chance to figure out a better method to achieve this. Thanks for your help and giving me some ideas
    0

Please sign in to leave a comment.