LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2007, 06:54 PM   #1
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Rep: Reputation: 15
Problem with Running a Program


I have an executable program (myprog) which works well on 2 Linux machines of my friend. The program is a general code and there is no license for it. However, it does not work on my computer (Linux SuSE). When I run it (myprog), the message is:

bash: ./myprog: Permission denied

I tried to run it as:

~> myprog
~> ./myprog

Neither of them worked.

Any idea what might be wrong here?

Thanks
.
 
Old 05-21-2007, 07:06 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you looked at the permissions of the file by running ls -l ~/myprog Are the executable bits set?

Also, is your home directory on a partition that is mounted with the noexec option?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem running a multicast ntwk program!! vishamr2000 Programming 2 01-29-2009 03:47 AM
Problem running C++ program in Linux Shell Alkibiades Programming 17 10-28-2006 06:51 AM
Having Problem with Running a Program in RH linux 8.0 cheenaik Linux - Software 18 06-03-2006 07:41 AM
display problem while running C program using openGL library narendramandiwalmca Linux - Software 3 06-15-2005 03:49 PM
problem running program as user FlAWD Linux - General 1 10-15-2003 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration