Skip to main content

Web-accessible folder/script for all user accounts on WHM, how to?

Comments

4 comments

  • cPanelMichael
    Hello :) This is a bad security practice and not something I could recommend. There is a thread here where this is discussed: Share Directory Across Multiple Accounts Thank you.
    0
  • kenshin23
    Yes, I'm aware of the security implications, but I'm just trying to find a way to get this to work. An outside-the-box approach (as explained by my employer) would be to set up a cron job as root, that checks the contents of the uploaded images folder for each account every n minutes, and if there are images there, move them to each user's images folder, as needed. He mentioned using a lock file to make sure that no files are moved if there's an upload operation in progress. I figure that would be better, security-wise (obviously, care will be taken to make sure only image files are moved to the folders.)
    0
  • cPanelMichael
    Yes, that workaround is similar to one of the solutions mentioned in the thread I referenced. Thank you.
    0
  • kenshin23
    [quote="cPanelMichael, post: 1694511">Yes, that workaround is similar to one of the solutions mentioned in the thread I referenced. Thank you.
    Thank you very much for your help. The script + cron job solution is working perfectly so far, and with no security issues, I hope.
    0

Please sign in to leave a comment.