Author Topic: Permission denied: Fedora 15  (Read 6768 times)

Offline audifanatic518

  • Single posting newcomer
  • *
  • Posts: 2
Permission denied: Fedora 15
« on: May 30, 2011, 04:21:05 pm »
Hi,

I'm new here, but not to Code::Blocks. I decided to use Code::Blocks in conjunction with Ubuntu this past semester in my intro to C class this past semester. I recently switched distros (to Fedora 15) because I absolutely hate Ubuntu's new Unity interface and I prefer Gnome 3. For the most part the transition was smooth, however, Code::Blocks does not function properly anymore. Whenever I try to run a program I get the following message in the pop-up window:

Quote
/home/<my name>/Programming/Homework/Homework1/bin/Debug/Homework1: Permission denied

The funny thing is that it compiles and runs fine in the terminal, but not within Code::Blocks. The permissions should be the same as they were in Ubuntu, I simply copied the folder to a flash drive and put it back on the computer after Fedora was installed.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Permission denied: Fedora 15
« Reply #1 on: May 30, 2011, 04:25:39 pm »
This is definitely not a C::B problem!

You've messed your permissions for sure :)

Are you sure that you  (your fedora user!) own the files and directories?
And the permissions are correct?
If you don't know how to check them search google :)
(hint: search for chmod, chown, chgrp and ls)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline audifanatic518

  • Single posting newcomer
  • *
  • Posts: 2
Re: Permission denied: Fedora 15
« Reply #2 on: May 30, 2011, 05:56:35 pm »
This is definitely not a C::B problem!

You've messed your permissions for sure :)

Are you sure that you  (your fedora user!) own the files and directories?
And the permissions are correct?
If you don't know how to check them search google :)
(hint: search for chmod, chown, chgrp and ls)

Thanks, got it...

I clicked properties on the executable in the debug folder. Under the permissions tab there was a little check box that said "allow executing file as program" and I checked it off and it works now!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Permission denied: Fedora 15
« Reply #3 on: May 30, 2011, 06:04:17 pm »
I clicked properties on the executable in the debug folder. Under the permissions tab there was a little check box that said "allow executing file as program" and I checked it off and it works now!
Blah, setting unix permissions using GUI, awful, blahh  :lol:

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]