Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to compile my C/C++ code in Code::Blocks, it says

obj/directory cannot be created

When I searched for that error, people suggested that it doesn't have read and write permissions for that directory.

So, one user suggested running the following command:

chown user.user * 

where user is the username of the computer. I've tried that, but nothing happened.

share|improve this question
Please explain in detail what command you executed, how (exact arguments) and where (directory), as well as the error message you get on Code Blocks, and, if applicable, after executing chown. – Daniel Beck Aug 5 '12 at 13:28
i first changed directory to desktop by cd /home/raman/Desktop and then I ran the command chown raman.raman * . To make sure that I even did sudo chown raman.raman * . Where raman is the username – Emily Smith Aug 5 '12 at 13:32
Are the files you want to write on the Desktop? Have you tried the same with a colon? It should be chown raman:raman ... you also should make sure you have write permissions as well, e.g. chmod u+rw – Daniel Beck Aug 5 '12 at 13:33
No i havn't tried it with colon so should I use chown u+rw or chmod u+rw – Emily Smith Aug 5 '12 at 13:36
You should start by reading these commands' man pages, man chmod and man chown. Your description is still rather vague so it will not be easy for others to give you step by step instructions, and used wrongly, these commands can render your system unusable. So you really should read up on unix filesystem permissions. – Daniel Beck Aug 5 '12 at 13:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.