Unable to write into directory with vim on 16.04

enter image description here

I'm trying to follow , but I'm getting the error in vim preventing me from inseting the text. I've tried:

sudo chmod 757 -R /var/www

but no luck. How can I save the file with vim?

2

1 Answer

So you are trying to write to /etc/uwsgi/sites/sample.ini usually items in /etc/ are only writeable by the root user. So you should run your editor with sudo like this

sudo vim /etc/uwsgi/sites/sample.ini
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like