4C4Blessed - Sep 18, 2006 - 10:04 am
Hello!
I want to configure my apache setup a bit. I've managed to use BBEdit to "open hidden" and open the /private/etc/httpd/httpd.conf file. I can see clearly the variable that I need to edit. But...
Bzzzz error, "you don't have permission to edit this file because it is owned by root" blah blah.
Yes, I know you can edit this file oin terminal using sudo pico. Yes, I know you can alsso mosey on over to root's desktop and edit it from there as well. But that's not my goal or question so please don't tell me this is what I "should do". That's not my question.
My question for today is, I would like to know if it's possible to launch an application with root permissions (in this case bbedit), so I can edit this text file here in my own user account, and without a terminal.
How does one do this?
Thank you!
slipknot - Sep 19, 2006 - 2:23 am
Did you install the BBEdit command line tools? If not you can choose to do so from the BBEdit preferences. Then from within the terminal type:
sudo bbedit /etc/httpd/hhtpd.conf
This also works for opening other Applications as root:
sudo open /Applications/Utilities/Keychain.app
Is one that I use quite often.
Hope this helps,
Gavin
4C4Blessed - Sep 19, 2006 - 5:17 am
Hello and thanks for taking the time!
I have not installed the command line tools from BBEdit (yet), and I'm trying to do this task without using the terminal. That's my goal. As I've stated, i know it can be done with the terminal. I already know how to do it with the termainal.
I'll refresh my question a little bit:
How do I launch an application as root, without using the terminal?
Is there a key combination to hold down while launching an application which will prompt for the admin pass to launch it as root?
Thanks again!
slipknot - Sep 19, 2006 - 6:43 am
slipknot - Sep 19, 2006 - 6:48 am
"I'll refresh my question a little bit:
How do I launch an application as root, without using the terminal?
Is there a key combination to hold down while launching an application which will prompt for the admin pass to launch it as root?"
There are no key combinations that I know of. You could change the ownership of the application in terminal:
sudo chown -R root:admin /Applications/some.app
But not really sure why you want to do this. Yeah you get a warning when you edit the httpd.conf file in BBEdit but choose to ignore the warning and when you come to save the file the OS will ask you to authenticate before committing the changes.
4C4Blessed - Sep 19, 2006 - 6:50 am
That's interesting, thanks!!
slipknot - Sep 19, 2006 - 6:52 am
"I'll refresh my question a little bit:
How do I launch an application as root, without using the terminal?
Is there a key combination to hold down while launching an application which will prompt for the admin pass to launch it as root?"
There are no key combinations that I know of. You could change the ownership of the application in terminal:
sudo chown -R root:admin /Applications/some.app
But not really sure why you want to do this. Yeah you get a warning when you edit the httpd.conf file in BBEdit but choose to ignore the warning and when you come to save the file the OS will ask you to authenticate before committing the changes.