DrCheeseit Posted November 9, 2008 Share Posted November 9, 2008 so like whenever i try to run a file it says sh: /home/luis/untitled1: Permission denied im running ubuntu and yah i cant run any code i put in any help? searched google and didnt find anything but im not exactly sure what im supposed to search Quote Link to comment Share on other sites More sharing options...
Sparda Posted November 9, 2008 Share Posted November 9, 2008 What command are you actually running? Quote Link to comment Share on other sites More sharing options...
DrCheeseit Posted November 9, 2008 Author Share Posted November 9, 2008 im just tryin to run some stupid text adventure thingy and i know it works ive used it b4 and i havnt made any changes but theres something wrong with i assume my administrative abilities and ive tried fiddling around with them but idk im lost im new to linux lol ive done a lot with it today but ive only had it for a like 5 hours and im lost as to what to do Quote Link to comment Share on other sites More sharing options...
Sparda Posted November 9, 2008 Share Posted November 9, 2008 Despite your lack of cooperation I'm going to assume it's either a file permissions issue or a incorrect command issue. So don't start crying when these don't fix your problem. The file you are trying to run must be 'marked' as executable. This can be done by chmod +x <file name>. If you are typing the file name as the command to execute this is likely wrong, you (usually) need to prefix it with ./. making the command you need to run ./<filename>. This is only the case if you are currently in the programs working directory, other wise it can be excluded. Quote Link to comment Share on other sites More sharing options...
DrCheeseit Posted November 11, 2008 Author Share Posted November 11, 2008 ty for the help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.