Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to save 'httpd.conf': A system error occured (EACCES: permission denied, open #13152

Closed
nurp opened this issue Oct 3, 2016 · 1 comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@nurp
Copy link

nurp commented Oct 3, 2016

  • VSCode Version: 1.5.3 (1.5.3)
  • OS Version: EL Capitan

Steps to Reproduce:

  1. In a terminal window type: open /etc/apache/httpd.conf (or a file owned by root)
  2. make changes to the file and cmd+s to save.
  3. Error appears on the title bar: Failed to save 'httpd.conf': A system error occured (EACCES: permission denied, open '/private/etc/apache2/httpd.conf')

I expect VS Code to ask for my password for authorization. Because if I do the same things with Atom, it opens an OSX native window asking for password. Can we have the same window asking for password instead of giving error?
Also, I noticed that this path /private/etc/apache2 (in the error bar) is different than what I typed.

@Tyriar
Copy link
Member

Tyriar commented Oct 3, 2016

Currently you should be able to run sudo code --user-data-dir <some temp folder>, this is to be improved in:

@Tyriar Tyriar closed this as completed Oct 3, 2016
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 3, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants