The Wampus Cat

2009/09/01

Using Sudo to Run Applications in OS X as Root

Filed under: macosx, technology — The Wampus Cat @ 15:25

Another OS X discovery.

If you try to run TextEdit as root in OS X by typing ’sudo open /Applications/TextEdit.app’ you will get ‘open’ running as root, not TextEdit. TextEdit will run as the user you issued the command as.

Instead, try ’sudo “/Applications/TextEdit.app/Contents/MacOS/TextEdit”‘ and you’ll have TextEdit running as root.

[Adapted from something by user gatorparrots on Mac-Forums.com]

1 Comment

  1. http://xkcd.com/149/

    Comment by evanevanevan — 2009/09/01 @ 16:27

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress