Search code examples
ubuntu-14.04atom-editor

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


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.


Solution

  • This isn't an atom problem, it's a linux permissions problem.

    You opened a file owned by another user (a file probably owned by root). If you want to edit that file, you have to either be root or change the permissions on the file to grant other users access.

    Usually the best solution is to temporarily become root and edit the file:

    sudo atom /path/to/file