I first mounted the iso file, and then after changing the directory to the virtual drive, and running the command sudo ./install, nothing happens. I don't get what I might be missing.
Asked
Active
Viewed 425 times
0
-
Is the file executable? do `sudo chmod +x file_name` first to make the file executable – Shagun Sodhani Feb 02 '16 at 04:37
-
I think so. since after listing the files in the virtual drive ($ ls), the install file name is green. – Essi A. Feb 02 '16 at 16:50
-
check the permissions associated with the file. That, IMO, is the more reliable way. – Shagun Sodhani Feb 02 '16 at 18:09
-
I'm new to Ubuntu. How can I check that? Many thanks – Essi A. Feb 02 '16 at 19:21
-
I tried ($ sudo chmod +x ./install) and also (($ sudo chmod - R +x ./install)) I got the result "chmod: cannot access './install': Permission denied) – Essi A. Feb 02 '16 at 20:06
-
For getting file permissions, use `stat -c "%a %n" file_name` and which command gives you permission denied? – Shagun Sodhani Feb 03 '16 at 03:43
-
both commands give me the permission denied message. I tried the `stat -c "%a %n" install`. it gave me the message "555 install" – Essi A. Feb 03 '16 at 16:43
-
Do `ls -l file_name` and post the content here please. – Shagun Sodhani Feb 03 '16 at 16:48
-
the content is _-r-xr-xr-x 1 root root 10483 Jan 3 2015 install_ FYI, install is the file name – Essi A. Feb 03 '16 at 18:30
-
That settles it. I have added an answer. Hope that works for you :) – Shagun Sodhani Feb 04 '16 at 02:30
1 Answers
0
As you mentioned in the comments, the file is owned by root user and root group. So you need to login as root by doing su root and then run the file using ./install. If you face issues in logging as root, you can refer this. Let me know if it solves the problem for you. :)
Shagun Sodhani
- 832
- 1
- 12
- 36
-
it still has not worked. I should mention that I extracted .iso file and tried to run the install file from the extracted folder. I did `ls -l install` in the new folder and the content is _-rwxrwxrwx 1 essi essi 10483 Jan 3 2015 install_. I tried everything by login as a root since the beginning of the command line is `root@essi`. – Essi A. Feb 04 '16 at 13:56
-
@EssiA. Its getting confusing. What happens when you do `su root` and `./install` in the original setting that you described in your question? – Shagun Sodhani Feb 06 '16 at 03:28
-
After doing `./install` (as a `root` user), it does not give me any message and nothing happens (the pointer goes to the next line in the terminal as usual). – Essi A. Feb 06 '16 at 16:28
-
What is the output of `ls -l` after doing `chmod +x file_name` in the original setting? – Shagun Sodhani Feb 07 '16 at 04:07
-
-
-