Author Topic: Permission denied Problem - Solved..  (Read 15929 times)

Offline ishade

  • Single posting newcomer
  • *
  • Posts: 2
Permission denied Problem - Solved..
« on: November 24, 2011, 04:52:47 pm »
for all of you who are having the permission denied problem while pressing build and run, all you have to do is,
run codeblock as administrator on your computer..
1. press right click on cb shortcut ( close cb before doing that)
2. go to properties
3. go to the compability tab
4. press " run this program as an administrator".
5 problem solved

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Permission denied Problem - Solved..
« Reply #1 on: November 24, 2011, 04:57:04 pm »
A better solution would be to find out what file cannot be accessed due to file permission rights and store this elsewhere in a path with proper access rights for the user.

Code::Blocks DOES NOT require admin privileges by default. In fact I wouldn't suggest to run any application with admin rights unless required for system administration.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ishade

  • Single posting newcomer
  • *
  • Posts: 2
Re: Permission denied Problem - Solved..
« Reply #2 on: November 24, 2011, 05:02:59 pm »
normally i wouldnt suggest runing a program as administrator as well but when the program is not in anyway connected to the web, the chance a trojan or a security risk would appear is unlikely.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Permission denied Problem - Solved..
« Reply #3 on: November 24, 2011, 05:23:33 pm »
What about stupidity, then?
Do you dare to put "delete c:\*.*" in a post build step? (I don't know the correct windows command)  8)
(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!]

zabzonk

  • Guest
Re: Permission denied Problem - Solved..
« Reply #4 on: November 24, 2011, 05:26:02 pm »
It doesn't solve the problem anyway. I always run as admin (for a variety of reasons), and re-experienced the problem last week. Shutting down my firewall and rebooting solved it, but I still haven't identified exactly what is causing it. However, simply running as admin won't fix it.
« Last Edit: November 24, 2011, 05:29:38 pm by Neil Butterworth »