Unable to change execute permissions of .sh file
The check boxes would be dis-appearing because you don't have appropriate permission as well as ownership to the file.. Try to make executable with the help of sudo
command.
Try to change it by command line
Open terminal by Ctrl+Alt+T
Then reach to the
jdk7.sh
file.cd /home/gurung/Downloads
if your file is locates in
/home/gurung/Downloads
or change accordingly.Then execute following commands to make it executable:
sudo chmod +x jdk7.sh
if your file name is
jdk7.sh
or replace the file name with the original one.
That's it.. :)
Related videos on Youtube
kiri
♫ I'd love to change the world But I don't know what to do So I'll leave it up to you ♫
Updated on September 18, 2022Comments
-
kiri over 1 year
I'm out with a new problem. I've downloaded a
jdk7.sh
file. Now I'm unable to change the permission of the file to allow executing the file as a program. I mark the check box and again it disappears.-
kiri over 10 yearsIs it on an NTFS partition? Where did you get this file from?
-
Eliah Kagan over 10 yearsSpecifically, please see the "Scripts" section of this answer. To summarize for the case of your specific file: Assuming your file is named properly,
sh jdk7.sh
will run it normally andsudo sh jdk7.sh
will run it as root (which might be necessary if its purpose is to create a systemwide installation of the Java Development Kit, accessible to all users). If the file starts with#!/bin/bash
instead of#!/bin/sh
, runbash jdk7.sh
orsudo bash jdk7.sh
. Note, the sourcing method in the other answer is not equivalent.
-
-
Saurav Kumar over 10 yearsThe actual problem is how to solve the issue.. Not finding different ways..