How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Thomas Z Your Own Question

Thomas Z
Thomas Z, Mac Genius
Category: Mac
Satisfied Customers: 172
Experience:  15 Years of Personal Experience on Mac, 6 months full time Computer Tech with Mac specialty
Type Your Mac Question Here...
Thomas Z is online now
A new question is answered every 9 seconds

How do I run a program as a root

Customer Question

How do I run a program as a root
Submitted: 7 years ago.
Category: Mac
Expert:  Thomas Z replied 7 years ago.
Before I tell you how to run an app as root, I need to know what you are accomplishing. It is totally possible that this is not required. As a general rule of thumb, you should avoid running anything on a *nix based system as root.

Tell me what you are trying to do, and I will give you the best answer to accomplish that goal.
Customer: replied 7 years ago.
well I have a program that I am trying authenticate... but it has to be "run as a root"
Customer: replied 7 years ago.
Customer: replied 7 years ago.

Expert:  Thomas Z replied 7 years ago.
Do you have the root account activated?

What version of Mac OS X are you on?
Customer: replied 7 years ago.
i believe I am running leopard
Expert:  Thomas Z replied 7 years ago.
Okay, lets make sure root is enabled.

Go to the finder and click on the Go menu and select Utilities.

Open up Directory Utility.

Click on the lock and enter your password. Then from the edit menu click on "Enable Root User"

Set the password XXXXX bam you've now got a root user.

Now to run your app as root you need to open up Terminal, which is also located in Utilities.

For example, to load TextEdit as root, type in:
sudo "/Applications/"

You can't just have it select the .app file, you need to actually select the executable inside the .app package. To find this executable you need to right click or ctrl click the .app and click "Show Package Contents".

Typically speaking the executable is inside

There ya go!
Expert:  Thomas Z replied 7 years ago.
Did this fix your problem?