Can I edit locked El Capitan files on Mac OS X with PHPStorm?

I am starting my first Drupal project in PHPStorm using El Capitan.  

 

I want to include some of local Apache files in my project for editing ( 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...   $  sudo vi  httpd.conf ....

Is there a config in PHPStorm to pass sudo requests to any given file being edited in a project? 

 

 

 

 

0

Would it help running PhpStorm with sudo?

0
Avatar
Permanently deleted user

Hi,  I don't believe so -- the issue is that the file being edited has UNIX write permissions only for the Root user.   When I go to save file edits, I need to tell the OS that I want to over-ride the write protections by issuing the sudo modifier PHPStorm's file save action.

0

请先登录再写评论。