![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jan 2004
Location: Melbourne
Posts: 12
|
Hi All - long shot here, but thought I'd see if anyone had something on this.
I am having an issue whereby the PHP function unlink() is being able to successfully delete a file even though explicit deny NTFS permissions have been applied to the file in question. I have even tried removing all NTFS file permissions and the like - same outcome and it has me stumped. FACTS
Does anyone have any thoughts on this? How would I go about providing folders/files that cannot be deleted in a location via PHP's unlink() that are inside a defined 'open_basedir' area? I'm using 'open_basedir' to stop scripts tampering with files outside of the declared open_basedir - this seems to be working fine - eg: can't delete files that are outside the location defined by 'open_basedir'. I'm going to cross-post this on Whirlpool and Web Hosting Talk with hope of answers on this one. Thanks in advance - look forward to some replies
|
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Dec 2002
Location: Townsville
Posts: 9,104
|
Are you setting the permissions of the file, or the folder that contains the file?
__________________
Successful trades: eyusuf, andy8, stuartl, michaeliam, theDarkHorse, bob |
|
|
|
|
|
#3 | |
|
Member
Join Date: Aug 2001
Location: London
Posts: 497
|
Check it out:
https://bugs.php.net/bug.php?id=10345 Quote:
|
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jan 2004
Location: Melbourne
Posts: 12
|
Zoltag, thanks for the reply - this seems to most likely be it, however I would have thought that even if the file in a containing directory has permission inheritance disabled and explicit deny permissions on delete for the file in question, for the user attempting to unlink/delete the file that it would fail...
More testing is required and i'll check in here when I have more. I'm going to setup auditing on the file and folder and see what is actually happening. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| permission, php, security, server, windows |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|