Score:0

How to handle permissions of unzipped files?

mx flag

I have been trying to install a software called ABAQUS on my UBUNTU laptop and as a part of the installation, I'm trying to run a script file called 'StartGUI.sh' using the command "bash ./StartGUI.sh" in the terminal. It then shows the following error every time: "Error: This media has been unzipped or copied in such a way that the permissions of some files have been lost. Please unzip or copy the media again."

enter image description here

I have tried selecting all the files and gave read and write permissions, yet I am facing the same issue. When I looked for a solution in Google, some articles suggested using 'chmod' but I couldn't figure out how to use it exactly. Could you guys please help?

hr flag
It sounds like the installation media itself is the problem - how did you obtain/install it?
sai chaitanya are avatar
mx flag
I got it from a friend, and I guess it probably might've been downloaded online.
hr flag
... and did your friend unpack/unzip it (to a USB drive for example) or did you get the original archive and unzip it yourself?
sai chaitanya are avatar
mx flag
I got the original .rar files and I unzipped them myself
N0rbert avatar
zw flag
What is ABAQUS? Can you share download link for it?
Score:0
it flag

To absolutely preserve the permissions/ownership, (once you've listed the archive to see where it installs its files (and are happy with that)), clean up previous installation attempts, and re-unpack the archive as user root, using sudo. Read man sudo.

Score:-1
vn flag

There is an easier numeric method to use chmod. If you want to give read permissions, type 4, if write type 2, if only execute type 1. Fore instance if you want to give all permissions to a file, the command will be:

chmod 777 [filename]

The first 7 (4+2+1) gives all permissions to file owner (which you can change using chown command), the second 7 gives all permissions to the file group, and the third 7 gives all permissions to others.

I recommend you open the terminal in the folder you want to change permissions by simply navigating to that folder using GUI, right-clicking and then choosing "open in terminal", then issue following command:

sudo chmod 777 *

sudo enables the administrator privileges, and the star at the end of command means issue the following command to all files in the folder. this is not exactly safe, but it will work 100%. for safer approach, type the file name instead of *. I recommend using * in your case though.

Also, The Web site https://linuxize.com/post/chmod-command-in-linux/ offers everything you need to know in more specific detail. good Luck!

sai chaitanya are avatar
mx flag
Hi DanielTaj, I have tried the suggested method and I see that the permissions have been changed but I am still facing the same error message.
ru flag
You may have to recursively change all the permissions to be executable in the installation media directory. For example if you extracted the installation media to /tmp/installationmedia run %sudo chmod -R 755 /tmp/installationmedia
terdon avatar
cn flag
Please don't suggest setting random files to 777! That can break all sorts of things, open huge security holes etc. The error message makes me think it is far more likely that the installer expects specific permissions, so 777 is likely to break it even worse anyway.
DanielTaj avatar
vn flag
@saichaitanyaare the folder you've extracted files into, you certain permissions are Ok there? sorry for the delay. I recommend changing the permission of the folder and the files extracted but no further, so you're certain that no security holes appear or nothing is really broken
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.