Run App As Sudo Mac

In Windows 7 you can start applications with admin rights and you can also run them as a different user. Is there a similar feature in Mac OS X? I have sort of a special application that needs adminstrator rights, but I don't want to be logged in to the admin account.


Run App As Sudo Macos

A simple way to launch GUI apps as root | 7 comments | Create New Account

Run App As Sudo Macro

Sudo run as another user
Click here to return to the 'A simple way to launch GUI apps as root' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

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.

If you want something a little nicer than vi (or Terminal-based emacs ;) BBEdit will let you authenticate at save time when saving files you don't normally have write access to. Not sure if the cheap version does too.

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...

I recommend a little app called Pseudo. It's $15 shareware, and I know the guy who wrote it, so please pay if you find it useful.

Run Sudo As User

pseudo is in fact nicer than the hint herein contained. If you use , then Cocktail will still ask the logged in user to authenticate before doing anything, and Cocktail has the feature (euphemism) of not letting you changing the user to authenticate. While pseudo does a correct job of asking for the administrative password.