Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'CFMApp to run App as root--didn't work' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CFMApp to run App as root--didn't work
Authored by: mantei on Oct 07, '02 02:48:32PM

I tried the suggestion for running BBEdit as root using CFMApp. The result was the message "alias: too dangerous to alias that".



[ Reply to This | # ]
Here's how I got it working...
Authored by: robg on Oct 07, '02 10:06:24PM
Hmm, worked fine for me, although I used a slightly different version of the command:
  alias bbroot "sudo /System/Library/Frameworks/
Carbon.framework/Versions/Current/Support/LaunchCFMApp[space]
/Applications/BBEdit\ Lite\ 6.1/BBEdit\ Lite\ 6.1\ for\ OS\ X"
This let me open and edit the httpd.conf file as my normal user ... nice to have this functionality back for Carbon apps. -rob.

[ Reply to This | # ]
CFMApp to run App as root--didn't work
Authored by: hysterion on Oct 08, '02 12:59:51AM
Ned... it works for me, in both 10.1.5 and 10.2.1, both in the original form with quotes, and in rob's form above with backslash escapes. (The backslashes arise naturally by dropping the BBEdit icon onto Terminal, but in my experience, submitting them to Geeklog is asking for trouble :-) Maybe you typed `alias' twice? So far as I can tell (by grepping the code: line 231 here, line 313 here), the only thing that would trigger your error message is if we try to alias something to `alias' (or `unalias') itself -- which of course would get us hosed. E.g.:
[localhost:~] fz% alias alias emacs
alias: Too dangerous to alias that.


[ Reply to This | # ]