Jump to content

Recommended Posts

Hi.  I'm trying to make my folder management tool able to remove stuff.  Problem is, I get permission denied.

 

I've checked the NFTS perms for the share and for the folder.  It's also not read only.  I logged into my other workstation as the service account the web server is using and opened a DOS window and did "rd \\server\share\folder" and it removed it no problem.  It just fails in PHP.  Any idea what I should be looking at?   Thanks!

Edited by Strahan
Link to comment
https://forums.phpfreaks.com/topic/290242-permission-denied-on-unlink/
Share on other sites

Which web server? IIS runs as an IUSR something account (varies), Apache is probably running as LOCAL SERVICE (if configured as a service) or your user account (if not and thus you have to run it yourself every time you need it).

 

Whichever account it is needs delete permissions on the parent folder. Are you sure it has that?

Edited by requinix
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.