Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > running an app as root?

running an app as root?
Thread Tools
Dedicated MacNNer
Join Date: Sep 2003
Location: Louisiana, US
Status: Offline
Reply With Quote
Oct 6, 2003, 01:52 PM
 
I know I can
Code:
sudo >programname<
but how do I su to root in order to edit something in the etc directory?

It seems I do not have the root password. I'd like to be able to log into a terminal as root, and run programs from the terminal. namely texedit. but nothing I try works. What am I doing wrong?
     
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Oct 6, 2003, 02:02 PM
 
You can either enable root via NetInfo Manager or the Terminal, or issue the Terminal command:
sudo -s
which will give you root-level permissions using your admin password.
/mal
"I sentence you to be hanged by the neck until you cheer up."
MacBook Pro 15"/2.4 GHz Intel Core 2 Duo/4 GB DDR2 SDRAM/200 GB Hitachi HD/8x SuperDrive/Mac OS X 10.6.1
     
pwolfe1  (op)
Dedicated MacNNer
Join Date: Sep 2003
Location: Louisiana, US
Status: Offline
Reply With Quote
Oct 6, 2003, 03:47 PM
 
ok, so then what did I do wrong here?

textedit never came up on the screen.

Code:
[X73-205:~] pwolfe1% sudo -s /Applications/TextEdit.app/ [X73-205:~] pwolfe1%
     
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Oct 6, 2003, 03:56 PM
 
You do it as 2 commands. First
sudo -s
Then you'll be asked for your admin pw. After that, try the
/Applications/TextEdit.app
/mal
"I sentence you to be hanged by the neck until you cheer up."
MacBook Pro 15"/2.4 GHz Intel Core 2 Duo/4 GB DDR2 SDRAM/200 GB Hitachi HD/8x SuperDrive/Mac OS X 10.6.1
     
Dedicated MacNNer
Join Date: Jul 2002
Location: Germany
Status: Offline
Reply With Quote
Oct 6, 2003, 06:20 PM
 
Originally posted by malvolio:
You do it as 2 commands. First
sudo -s
Then you'll be asked for your admin pw. After that, try the
/Applications/TextEdit.app
Hi!

To a unix command TextEdit.app is a directory. To open a MacOS X application from the terminal you have to use the "open" command. There's also a tool called Pseudo, which let's you open Apps as root without using the Terminal.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:34 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2