Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

March 10, 2006

Zip: Inherited Parent Directory Security Settings

Question:

I am using the Chilkat .NET zip component and have noticed that when I create a password protected zip file using the WriteZipandClose method the inherited windows security settings are not applied to the file. On Windows 2000 the “allow inheritable permissions from the parent…” option is checked but the inheritable permissions are not propagated to the zip file being created. On Windows 2003 the “allow inheritable permissions from the parent…” is not selected. Have you ever encountered this? Any settings I can change to correct it?

Answer:

Set the zip.TempDir property equal to this string: ".".

When the Zip component writes a Zip, it does so in a temporary directory and then moves the Zip to its final destination. If the temp directory is something other than the current working directory, the permissions will be relative to where it was created. If you change the TempDir to ".", it fixes the problem because the temp Zip is created in the same directory as the final target directory.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.