LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   command line problem (https://www.linuxquestions.org/questions/linux-general-1/command-line-problem-68249/)

garth_s 06-26-2003 02:02 PM

command line problem
 
how come when I'm instructed to use the command
example- ./install
it will not work, yet when use
-sh install it will run the file.

I am also unable to get configure to work. Are these two problems linked?

I'm using Redhat 8 on this box.

cnjohnson 06-26-2003 02:12 PM

Files will not execute from the command line unless they are "set to execute" and you have permissions to do so.

Do an ll and examine the output, you get something that looks like this:

-rw-r----- 1 cnjohnso informix 16861 Feb 18 2002 smit.log

Please notice the -rw-r-----

Reading from left to right, grouping by three places and ignoring the first dash, we see that for the file "smit.log", the owner has read/write privs, but not execute privs; group has read, but no write or execute privs, and all others have no privs at all.

If a file has execute permissions, then you will see an "x" in the relevant position: -rwxr-x--x

In this case everybody has execute privs.

So, read the man page about chmod, and you can fix your problem.

Cheers--
Charles


All times are GMT -5. The time now is 08:20 PM.