Unable to run program, Permission denied
Hi All,
I am working on Solaris Sparc 9 and I developed application and in that I want to open any file when any action is happened but when I am trying to do the same.I am getting the error -- Quote:
$ ls -l test.txt -rw-rw-rw- 1 Sang staff 191 Aug 7 15:04 test.txt Still unable to open it. So please provide me your valuable suggestions for it. Thanks in advance.. Edit/Delete Message |
You are trying to run the "/test.txt" file. Because file has no execute permissions you are getting access denied errors. Just do "chmod +x /test.txt" or fix your code to read the file not to execute it.
|
I need to run any program which is being add to it.it can be script which should be run when specific action occers.
e.g sh test.sh but getting the same error. |
Did you give execute permissions to the file? I cannot see any problem other than file permissions. Just do a "chmod 777 /test.txt". And be sure there is nothing in script that needs root privileges to run. This should be the problem. Can you run the "test.txt" script from command line?
|
All times are GMT -5. The time now is 08:10 AM. |