Have you tried "sudo yourprogram"?
Yes, I am doing that now, I was just hoping there was a setting in code::blocks so I don't have to go to the terminal every time I want to test the program.
There is; it works sightly differently between Windows and Linux; so, it might not do what you want.
I am on windows; so, I am not sure what Linux shows.
Try "Project" -> "set Program Arguments"
Tim S.