开发者

Where is the zipcloak puts the temporary file by default?

开发者 https://www.devze.com 2023-02-05 17:24 出处:网络
When I use zipcloak to encrypt an existed zip file, I got an error like this: zipcloak error: Permission denied

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 p开发者_StackOverflow中文版lace.

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号