| Dart Home | PowerTCP Zip Compression for .NET | Custom Development | Reply | PowerTCP Zip Compression for .NET Topics | Forums |
| Author | Forum: PowerTCP Zip Compression for .NET Topic: created sfx files do not inherit NTFS permissions |
| mom4751 From: Bologna, Italy Posts: 2 Member Since: 04/18/07 |
posted April 18, 2007 10:57 AM Hello, I have developed a web application that creates self-extracting archives in an appropriate folder, in order to be downloadable. But the archives created do not inherit the ntfs permissions of the containing folder. I have reapplied permission entries to the entire web project but when deleting and recreating the archive the problem appears again. Due to the permissions change, i lose the "Internet guest account" read rights on the file, so it becomes undownloadable. I don't understand where the new permissions come from. Any idea? Regards. |
| mom4751 From: Bologna, Italy Posts: 2 Member Since: 04/18/07 |
posted April 18, 2007 12:16 PM I have found a workaround. It seems that the sfx file is built on the c:\windows\temp\ folder and then moved (NB: moved; not copied in the new position and then deleted) so the file brings the c:\windows\temp permission rights with him. Now I have assigned read permissions on c:\windows\temp\ folder for the Internet guest account. This is not the best solution for the security, but it works. |
| Amit From: Rome, NY USA Posts: 315 Member Since: 03/15/06 |
posted April 20, 2007 1:53 PM Hello, This behavior occurs because, under Windows 2000 and above, the temp file used by the zip compression is created in the current user's Temp folder. Therefore, the zip file will inherit the permissions of the wrong folder. To allow the zip file to inherit the permissions of its parent folder, you have three options: 1) Set the TempFolder property to a folder that has the correct permissions, such as the destination folder itself or "C:\Windows\Temp\" for example. This will allow your zip files to inherit the correct permissions from the parent folder without depending on the current user running the application using the Zip tool. 2) Change the location of the current user's temp folder via the "Environment Options" dialog box to another folder that has the correct permissions, such as "C:\Windows\Temp" for example. 3) Set the correct permissions on the user's temp folder Regards, Amit |
| Reply | PowerTCP Zip Compression for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|