Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I used WineBottler to install Beyond Compare on my Mac. It runs within an X11 environment. (It works great, by the way.)

But it cannot access many folders to which my user account does not have permission, e.g, in the /System folder.

How can I run BC with "sudo" permissions?

share|improve this question
add comment

1 Answer

I haven't used WineBottler, but I'm assuming it creates an icon for the app in your Applications folder.

To run any App in OS X as sudo, open Terminal and enter the following:

sudo open -n $foo

Then drag the icon for the App from Finder into Terminal (replacing $foo in the example above). Press Enter and type your password. Voilà! Terminal launches the App as root.

Note that open -n works in Terminal to launch any $foo.app as if it were launched via the Finder. (Otherwise it's impossible to launch and OS X app via Terminal as Apps are really just specialized directories on the filesystem-level.)

We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

( I couldn't resist :P )

share|improve this answer
    
This certainly works. I wish I could tick the accepted answer, but we'll need the OP to do that if they are so inclined. –  bmike Jan 6 at 21:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.