LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-28-2005, 06:58 PM   #1
tonyevansau
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Permission denied


Hi, I am very new to all this Linux stuff and have what is most likly a silly proplem IE. I have made a makefile for a small program but when I try to use it with the make command I get :-

[tony@localhost assignment3]$ makefile
bash: ./makefile: Permission denied

I have all the files in the current working folder assignment3 ?

How do I get it to work?

Tony - Australia
 
Old 10-28-2005, 07:01 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
Are you sure the permissions and ownerships are correct and your user account has proper access? Is there any other details on this makefile and program your speaking about that we should know to better help you?
 
Old 10-28-2005, 07:53 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Try just running 'make' rather than 'makefile'
 
Old 10-28-2005, 07:57 PM   #4
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Have you applied execute permissions to the file ?

if you do

Code:
ls -l
this will tell what permissions the file has.

if you get

makefile -rw-rw-r--

if the x or execute bit is not set then you can't run it as a program

try doing

Code:
chmod a+x makefile
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Permission Denied jamesvenning1 Linux - Newbie 4 06-05-2005 11:32 AM
Permission denied jagman026 Fedora 3 01-01-2005 03:45 PM
Permission Denied ptreves Linux - Newbie 7 12-16-2004 02:14 PM
Permission denied? jbhoo Linux From Scratch 1 04-27-2002 09:12 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration