<p dir="auto">We should add support to save files that require admin access. The way Sublime Text does it is when you hit save, there is a dialog prompt for your password.</p>
<p dir="auto">Currently this is the error thrown:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Error: EACCES, permission denied '/private/etc/apache2/extra/httpd-vhosts.conf' - fs.js"><pre class="notranslate"><code class="notranslate">Uncaught Error: EACCES, permission denied '/private/etc/apache2/extra/httpd-vhosts.conf' - fs.js
</code></pre></div>
<p dir="auto">I edit my <code class="notranslate">/etc/hosts</code> file a lot to work with Enterprise VMs. My typical workflow for that is to run <code class="notranslate">subl /etc/hosts</code>, edit the file, <code class="notranslate">cmd-s</code>, and then I get prompted for my password since it's trying to save and my user doesn't have permission to.</p>
<p dir="auto">In Atom, it opens the file just fine, but when I try saving the dev tools pane pops up and I see this in the javascript console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Error: You don’t have permission to save the file “hosts” in the folder “etc”."><pre class="notranslate"><code class="notranslate">Uncaught Error: You don’t have permission to save the file “hosts” in the folder “etc”.
</code></pre></div>
<p dir="auto">It would be cool if we had support for nicely handling cases where you try saving files that require privilege escalation to write.</p>