Unzip File: Permission Denied
I am trying to unzip a file (Facebook download-your-info zip file), but here's what I got:
Is there a way I can force-unzip it?
Update: I tried sudo unzip file.zip -d destination_folder
in terminal, and it unzipped the file, but what came out, all the files have size 0 bytes:
Update 2: I do have permission to the directory and the file.
(I'm really sorry if my question is asked badly. Let me know down in the comments :) )
Solution 1:
Either you try to unzip your archive in a directory where you do not have access rights or the rights on the archive are not granted to you. You can easily check using ls -la
command and change permissions using chown
and chmod
commands.
You can also try unzipping from the command line as a super user and choose a directory where you have access rights.
sudo unzip file.zip -d destination_folder