简体   繁体   中英

Unzip in Unix create Files with 000 permission

I have created a zip in Windows. Transferred it into Unix. Used the unzip command to unzip the zip. It results in the files getting created with no permission. Something like "---------- 1 root root 10930 Nov 23 07:54 a.txt"

This results in file permission issues. Is there any way i can unzip the zip to default umask value of the Operating system

What i came to know is unzip doesn't play much of a part in the file permissions. Whatever comes in us from the zip is unzipped in unix. The issue was related to Cygwin wherein the files when zipped comes with 000 permissions. cygwin.1069669.n5.nabble.com/… – Anand Builders

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM