• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

File Permissions Confusion

Sal Quintanilla

New Pleskian
Using Plesk 12.0.18 on Windows Server 2012, we're running php code that has two ways of adding files to the host.

If we create the file using a pdf library on the host and save it in host subdirectory X, it has the same ownership properties as subdirectory X itself.

If we use FileReference.upload to upload the file from a remote location, and then use move_uploaded_file to put in the same directory X, the file is there and complete, but most of the users with access to directory X (and to any pdf files created as described above) are not listed in the uploaded file, and therefore don't have access to it. It doesn't seem to have the same rights as the temporary upload directory either.

We'd like to have the uploaded file have the same security settings / user access as the created file, but I'm not sure how to make that happen within Plesk or anywhere else. Describing this situation on google / bing has been difficult, but I'm hoping this is the right place to ask. If anyone has insights they can share on this, I'd appreciate it.

Thanks.
Sal
 
Last edited:
Figured it out, that was straight-forward as soon as I understood all the players. The fix wasn't to impose security attributes to the file, it's attributes were set once it was created. The appropriate thing was to create a user that belonged to both the general Plesk group and the ftp group. That's the account that now has access to all the files.

All that said, if there's a better way to handle it, I'm here to learn.
 
Back
Top