Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 ever I open eclipse to work, I get the following message

Could not write metadata for '/website_1'./var/www/.metadata/.pluginsorg.eclipse.core.resources/.projects/website_1/.markers.snap (Permission denied)

I click ok but it appears again. Actually it seems that somehow the application user of eclipse seems not to have permission on changing the project files of eclipse.

But I am not sure, because I am really new to ubuntu. Can anyone help me please? ty

share|improve this question
Did you try running with sudo(root). Files under /var/www are protected by default but you can change the permissions define. – devav2 Aug 24 '12 at 20:12
well I have opend the programm and I have selected /var/www/ as default workspase. You think I should change the path to /home and above? – themhz Aug 24 '12 at 20:21
I am using php, and php seems to be installed succesfully. I even added chmod 777 var/www in order to view the website and It seems to work. – themhz Aug 24 '12 at 20:38
So I can add the first comment as answer to your question? – devav2 Aug 24 '12 at 20:41
Well I changed the default workspace to be in home/myworkspaces and now I don't get the error anymore. So probably your suggestion gave me qlue, yes – themhz Aug 24 '12 at 21:08
up vote 1 down vote accepted
  • Try running your application as root(sudo su).

  • Change the permissions of /var/www directory (write) .

  • Please keep all the user related files under $HOME.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.