Issue 1:
This is an issue generated by Atom.app. I have submitted this so that it may be of help to the developers should they find it serious

Uncaught Error: EACCES, permission denied '/private/etc/hosts'

Atom Version: 0.157.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

Open Terminal.app

Type atom /etc/hosts and hit return

Stack Trace

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:308

Error: EACCES, permission denied '/private/etc/hosts'
at Error (native)
at Object.fs.openSync (fs.js:455:18)
at Object.module.(anonymous function) [as openSync] (/Applications/Atom.app/Contents/Resources/atom/common/lib/asar.js:422:20)
at Object.fs.writeFileSync (fs.js:1011:15)
at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:228:17)
at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:227:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:297:21)
at File.module.exports.File.write (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:286:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:966:17)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:954:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:585:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:511:16)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:501:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:596:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:287:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)

Issue 2:
Uncaught Error: EACCES, permission denied '/etc/ssh/sshd_config'

Atom Version: 0.157.0

System: linux 3.13.0-24-generic

Thrown From: Atom Core

Steps To Reproduce

Open file with: sudo atom /etc/ssh/sshd_config

Make changes to it and save

Stack Trace

At /opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:311

Error: EACCES, permission denied '/etc/ssh/sshd_config'
at Error (native)
at Object.fs.openSync (fs.js:455:18)
at Object.module.(anonymous function) [as openSync] (/opt/atom/resources/atom/common/lib/asar.js:422:20)
at Object.fs.writeFileSync (fs.js:1011:15)
at Object.fsPlus.writeFileSync (/opt/atom/resources/app/node_modules/fs-plus/lib/fs-plus.js:228:17)
at File.module.exports.File.writeFileSync (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:227:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:297:21)
at File.module.exports.File.write (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:286:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/opt/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:966:17)
at TextBuffer.module.exports.TextBuffer.save (/opt/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:954:19)
at TextEditor.module.exports.TextEditor.save (/opt/atom/resources/app/src/text-editor.js:585:26)
at Pane.module.exports.Pane.saveItem (/opt/atom/resources/app/src/pane.js:511:16)
at Pane.module.exports.Pane.saveActiveItem (/opt/atom/resources/app/src/pane.js:501:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/opt/atom/resources/app/src/workspace.js:596:35)
at atom-workspace.atom.commands.add.core:save (/opt/atom/resources/app/src/workspace-element.js:287:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/atom/resources/app/src/command-registry.js:243:29)
at /opt/atom/resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/opt/atom/resources/app/src/window-event-handler.js:167:20)