Sublime Forum

Mac OSX options for sudo file edits

#1

I am starting a new Drupal web app project on my new El Capitan Macbook

I want to edit some Apache files for my local http dev sites ( e.g. httpd.conf edits for DocumentRoot, vHosts, etc.)

Files like these have been locked down to Root user write access in El Capitan, as part of the well-documented security measures implemented by the OS X engineers.

My current, un-preferred approach is to sudo vi any such files in terminal…
Open terminal
$ cd some directory
$ sudo vi httpd.conf, etc

Very clunky!!!

Is there a config in SublimeText for OS X to allow me to pass sudo requests on any given file being edited with SublimeText, where that file is under write protection by the OS X SLA restrictions?

0 Likes