MSFN Forum: Q: Securing a folder that php writes to - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Q: Securing a folder that php writes to How can I allow a the files to be deleted by an authorized user only? Rate Topic: -----

#1 User is offline   Foo 

  • Group: Members
  • Posts: 2
  • Joined: 10-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 10 August 2012 - 04:57 PM

XP Pro

Xampp server

In PHP, the page will copy a file to another folder. (works)
That other folder that the file is copied to is shared. (works)

I have the folder's security set up to only allow a particular user to have full control over it.
(doesn't work unless I also allow System as a user that has full control. The part that won't work is that php can't open the folder to write to.)
The php page will appear in the shared/secured folder with these settings. (works) As long as System is also enabled under user permissions.

The part that doesn't work is;
when I access the shared folder from another computer on the domain, I can get to the copied file but I can't delete it.

What I am attempting to do:
I want the website to copy a page that was created with php to another folder. That copied page can be viewed through the web browser at its new location.
I want particular users to be able to clean that folder out when the files become numerous. But I don't want just anyone getting into the folder.

Is there another user type that I need to add to the security tab? I have allowed full control to both my user and system.

Thanks in advance.

This post has been edited by Foo: 10 August 2012 - 04:59 PM



#2 User is offline   Foo 

  • Group: Members
  • Posts: 2
  • Joined: 10-August 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 August 2012 - 07:38 PM

Solved.

It had to do with share permissions and ntfs permissions being at different levels/users. Didn't realize that they could both scale separately like that.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy