Skip to content
Abraham Nnaji
  • Home
  • About
  • Writing
  • Work
  • Resume
  • Contact
← All writing

note

Fixing "permission denied" when saving files in VS Code

28 Jan 2019updated 28 Nov 20261 min · 46 wordslinuxvscode

A flat diagram of a code editor with a rust padlock blocking its save badge and a curved dashed olive arrow guiding a document to a neon green-yellow home folder.
Next →Fixing /dev/kvm permission denied for Android emulators on Ubuntu

Recruiting, a question about a post, or a soccer take. Email works best.

nnaji.abraham+web@gmail.com
  • LinkedIn
  • GitHub
  • Twitter/X
  • Medium
  • Spotify
  • YouTube
  • RSS

status: building engineering platforms

© 2026 Abraham Nnaji · BC, Canada · no tracking
Note

2026 note

chmod -R 777 makes the folder writable by every user on the machine. Taking ownership of it is the safer fix: sudo chown -R $USER:$USER <project_dir_name>.

Ubuntu/Linux VSCode Permission Denied

This is how I fixed this issue with running VSCode on Ubuntu.

Give the folder 777 permission:

bash
sudo chmod -R 777 <project_dir_name>