Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-28-2005, 07:58 PM   #1
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, 08:01 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
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, 08:53 PM   #3
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, 08:57 PM   #4
Registered: Jul 2003
Location: Scotland
Posts: 34

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

if you do

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

chmod a+x makefile


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 05:50 AM
Permission Denied jamesvenning1 Linux - Newbie 4 06-05-2005 12:32 PM
Permission denied jagman026 Fedora 3 01-01-2005 04:45 PM
Permission Denied ptreves Linux - Newbie 7 12-16-2004 03:14 PM
Permission denied? jbhoo Linux From Scratch 1 04-27-2002 10:12 PM

All times are GMT -5. The time now is 05:04 PM.

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