I am getting Unable to save file: Permission denied in atom when saving running ubuntu

Matthew Slaton picture Matthew Slaton · Nov 14, 2015 · Viewed 72.9k times · Source

I just installed Atom, and I am getting an error thrown up when I go to save the project.

Unable to save file: Permission denied

I am signed in with admin privileges.

Answer

Sam picture Sam · Jan 29, 2017

Try running:

sudo chown -R username:www-data /path/to/directory

"username" being what gets spit out when you enter

whoami

Digital Ocean's tutorials are pretty good for installing stuff the right way. I got the above from https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04