1

When I use zipcloak to encrypt an existed zip file, I got an error like this:

zipcloak error: Permission denied zipcloak error: Temporary file failure (ziC8mO6F)

The command I executed:

/usr/local/bin/zipcloak /Library/WebServer/foo.zip

I'm sure I've set the permission of /Library/WebServer to 777, but it seems like zipcloak create the temporary file in a different place.

By the way when I specify the temporary path by -b option of zipcloak, it's worked.

/usr/local/bin/zipcloak -b /Library/WebServer/ /Library/WebServer/foo.zip

The -b option: -b Use the specified path for the temporary zip archive

kinopyo
  • 1,667
  • 3
  • 19
  • 26

1 Answers1

0

It tries to open a temporary file in the current directory.

Dennis Williamson
  • 346,391
  • 90
  • 374
  • 439
  • That is what I thought.. But is that different from the directory I specified? – kinopyo Jan 21 '11 at 12:34
  • @kinopyo: Actually, it appears to create it in the destination directory. Can you reproduce this error if you try it on a copy of the file in a different directory? – Dennis Williamson Jan 21 '11 at 15:42