Reputation: 155
I use tar -zxvf tarFile.tar.gz
to extract the tarFile, but there is an error hint tar: subfile :Cannot open: Permission denied
.
I am a root user, and the permission of tarFile.tar.gz
is 755, and the directory of the tarFile is also 755.
Executetar -tvf tarFile.tar.gz
tells the sub files permission is 644.
As the attached pic show.
Upvotes: 3
Views: 17157