Mac Launch App As Root
Mac Execute App As Root
The simplest way to launch an app from the keyboard is to use Spotlight. Press the Spotlight keyboard shortcut (by default this is Command-Space) and type the first couple of letters of an app’s.
Click here to return to the 'A simple way to launch GUI apps as root' hint |
This seems to work great for applications, so for editing text files and plist files and such it will be very helpful. However, is there any way to open a path as root using Finder? Using the open command is the only way I can see, but as that post mentioned, sudo open doesn't actually open the path as root. I have tried specifying the entire path of Finder (sudo -b /System/Library/.../Finder.app/Contents/.../Finder) followed by the path of the folder I want to open as root. My dock flashes briefly, as if Finder were relaunched, but that's all I see. When I look at what applications are running, I have another Finder running. The only way I can see how this would work is to do a killall on Finder, and then open Finder as root. Would this essentially give me root access on folders? I could then killall Finder when I'm done and launch it as my normal user. Any idea if this is what I would need to do, or is there any way to just open a single folder as root???
---
Jayson
When Microsoft asks you, 'Where do you want to go today?' tell them 'Apple.'
I think there was a hint for this since 10.1:
just copy /System/Library/.../Finder.app/ to anywhere and rename it Finder2.app or whatever. Now you´re able to drag´n´drop Finder2.app on Pseudo to run as root.
However then there are two Finders running (the User Finder and the pseudo-root copy) sharing the same Dock Icon. In Panther you could distinguish between the User and Root mode windows: The sidebar will contain 'root' and the whole finder window configuration might appear different..
Since it´s a bit messy to quit the Finder from Dock if you were adding the 'quit' menu entry (gonna be relaunched instantly sometimes...) i prefer killing the Root-Finder from Terminal or ActivityMonitor utility.
TextWrangler prompts for authentication when saving to a write protected file that it's opened, but won't allow saving to one with a different filename (e.g. using 'Save As') if the directory is write protected. And it only allows overwriting writable files in directories not owned by the user if it's opened them.
Someone more familiar with TextWrangler may know better. I won a copy the other day so your post was a reason to test it and reply.
How I wish SubEtheEdit could do that out-of-the-box without any tricks (sudo SEE). It is a very nice, cocoa based, free, colloborative text editor written for OS X, not a port of an aging app (re: BBEdit) that costs more than the OS it runs on...