Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Win2K Server Gurus...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CarKnee
Junior Member

USA
297 Posts

Posted - 08 September 2004 :  10:00:12  Show Profile  Visit CarKnee's Homepage
Here is my deal.

I have a system that allows my members (4,500) to have a gallery area where they can upload about 1/2 MB worth of pictures. Recently I, and the members, have been seeing a "permission denied" error from the FSO when they try to delete the images. Uploading is not a problem. The permissions all look good on the parent directory, their directory and the file in question. If "refresh" is hit a few times it will sometimes go thru, however this is not always the case. If I go in and reset all the permissions everything will be fine for a short while, but inevitably it comes back.

Any ideas?

Thanks,
CarKnee


Edited by - CarKnee on 08 September 2004 10:01:49

Podge
Support Moderator

Ireland
3776 Posts

Posted - 08 September 2004 :  12:36:19  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
What upload component are you using?

It may allow you to use a different windows account to delete the files.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 08 September 2004 :  12:58:05  Show Profile  Visit CarKnee's Homepage
I am using SoftArtisans.FileUp

After a file is uploaded it has the following permissions on it:

/
Administrators = Full
System = Full
IUSR = Read & Execute / List / Read
IWAM = Read & Execute / List / Read

/members (Parent directory)
Administrators = Full
System = Full
IUSR = Full
IWAM = Full

/members/themembername
Administrators = Full
System = Full
IUSR = Full
IWAM = Full

/members/themembername/thefile.jpg
* The owner is the IUSR account
Administrators = Full
System = Full
IUSR = Full
IWAM = NONE
Everyone = Full


I try to delete it and I get the error. Refresh 3x and it then deletes the file! Also, why didnt the IWAM permissions propagate to this new file and where did everyone come from?




Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 08 September 2004 :  13:33:53  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I had the exact same problem with FSO on W2000 and this worked for me.
(I've since moved to W2003 and not had the problem)

http://www.aspemporium.com/aspEmporium/tutorials/permdenied.asp

I noticed that you can also delete with FileUP which probably would be a better way to do it.
http://support.softartisans.com/docs/FileUp/prog_ref_fileup_delete.htm

This may also help diagnose the problem - http://www.sysinternals.com/ntw2k/source/filemon.shtml

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 08 September 2004 :  15:33:56  Show Profile  Visit CarKnee's Homepage
OK I think I may have got it now!

The permissions issue was a result of the %WINNT/TEMP directory permissions and how file up uses it:
http://support.softartisans.com/kbview.aspx?ID=776

That got the permissions right, but it was still flaky! I got to thinking about what would make this start happening out of "nowhere" and why was it only sometimes...

About 2 weeks ago I started using a .NET HttpHandler that handled all JPG images! I have a feeling that the handler was locking the file! I have modified my handler to force a Dispose() on the Bitmap object and we will see what happens.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07