Access hidden "root-only" folders on Finder
Sometimes it is useful to quit the Finder application and reopen as the root user. You can quit the Finder application by entering the following command in a Terminal application window.

osascript -e 'tell application "Finder" to quit'


Below is the Terminal application commands for opening as root user. I assume here that you have first quit any previous opened Finder applications.

If using Mavericks (OS X 10.9) or Yosemite (OS X 10.10):

sudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder 2&gt;&amp;1 | logger &amp;


If using Yosemite (OS X 10.10) or El Capitan (OS X 10.11):

sudo login -f root
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder 2&gt;&amp;1 | logger &amp;
exit