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.
Asked
Active
Viewed 1.3k times
3
kiri
- 28,246
- 16
- 81
- 118
Siddharth Gurung
- 51
- 1
- 2
- 3
1 Answers
3
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.shfile.cd /home/gurung/Downloadsif your file is locates in
/home/gurung/Downloadsor change accordingly.Then execute following commands to make it executable:
sudo chmod +x jdk7.shif your file name is
jdk7.shor replace the file name with the original one.
That's it.. :)
Saurav Kumar
- 14,916
-
The actual problem is how to solve the issue.. Not finding different ways.. – Saurav Kumar Oct 15 '13 at 04:10
sh jdk7.shwill run it normally andsudo sh jdk7.shwill 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/bashinstead of#!/bin/sh, runbash jdk7.shorsudo bash jdk7.sh. Note, the sourcing method in the other answer is not equivalent. – Eliah Kagan Jan 08 '14 at 00:17