Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am developing MVC apps in Monodevelop. Everything works fine, I can build and run the app in its development directory... but when I go to deploy (even locally) I get an error:

System.UnauthorizedAccessException: Access to the path "/websites/project1/bin" is denied.

I am assuming that I need to give permissions to that directory. But, to whom should I grant permission?


share|improve this question
Who owns /websites directory and what are the permissions? You could try to change ownership to the current user by using the chown command for the current directory tree in question. Of course in case of successful execution you should consider about security and who should have access to /websites/.. Usually in web apps the webserver user is allowed to execute the application, that can be achieved as mentioned above either by taking the ownership or by inclusion in a specific group. –  Stef K Apr 9 '13 at 22:12
The directory is chmod 775. –  aserwin Apr 9 '13 at 23:09
who is the owner of the directory?(ls -l will display the user and group) try to change it to the user trying to execute the app. –  Stef K Apr 9 '13 at 23:12
Well, I (not root) own the directory. –  aserwin Apr 9 '13 at 23:23
I suspect you are trying to execute it with some web server by accessing a web page, if this is the case then it should be able to run if you change the ownership to the web server. For Apache in Ubuntu issue: chown -R www-data:www-data /path/to/websites/ where www-data:www-data the apache user and its respective group. –  Stef K Apr 9 '13 at 23:31
show 1 more comment

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.