How do I run an application as root?

I want to run this application as root because I want to allow it to listen on a port lower than 1024. It is a regular application I am used to running by double clicking it in the Finder. In the Terminal, I have su'ed to root, and I try to run it by typing ./Warcraft\ III, however I receive the error:
./Warcraft III: cannot execute binary file
The file has the correct permissions (755), and it is not a directory (and does not have a .app extension). I am used to double clicking this file in Finder to start it.
Thank you

Hi Boyd,
> is there a way to run an application starting from
Finder as superuser
   I may not be understanding what you mean as root is the superuser but there are a variety of ways to make script commands "double-clickable". You can put the following in an AppleScript:
do shell script "/System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFM App /<Absolute>/<Path>/<to>/Warcraft\ III" with administrator privileges
Save the AppleScript as an application and you will be able to double-click on it.
   You can save the shell script with a filename suffix of ".command" and it will be double-clickable.
   Finally, use Sveinbjorn Thordarson's Platypus to turn the script into a double-clickable application.
Gary
~~~~
   Don't take life seriously, you'll never get out alive.

Similar Messages

  • How do I run an app as root at Login?

    Hi,
    I need to run an application as root at login (not startup). The terminal command to do this is:
    sudo -b /Applications/MarcoPolo.app/Contents/MacOS/MarcoPolo
    Is there a way to run "/Applications/MarcoPolo.app/Contents/MacOS/MarcoPolo" as root when a user logs in?

    Perhaps there is a more graceful way to do this using launch daemons (you should ask on the [Unix forum|http://discussions.apple.com/forum.jspa?forumID=735] but the following will work.
    paste the following into Script Editor and save it as an application. Add that application to your login items.
    do shell script "/Applications/MarcoPolo.app/Contents/MacOS/MarcoPolo" user name "your-admin-username" password "your-admin-password" with administrator privileges
    You'll have to enter your admin username and password in the above in open text. This is a clear drawback of course.
    I don't know how to incorporate -b option in this.

  • How can i run Webdynpro application

    How can i run Webdynpro application without using Developer Studio? Where should i put a whole project and how shoud i start it.
    Thanks!
    Maciek

    Hi Maciej
    You wouldnt require a Developer Studio to run you
    application.But you would require it to deploy (if are
    using the JDI ,atleast to perform an Activation).
    However you can launch the application once deployed
    through the Web Dynpro Content Administrator
    http://<servername>:50000/webdynpro/welcome/
    The deployed applications are present on the
    lefthandside. They can be expanded to drill down to the
    Application and the press Run
    Regards
    Pran

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • [SOLVED]Unable to run Graphical applications as root/sudo

    Ok so ive been working on getting my very first Arch install up and running and I need to get the catalyst drivers running for my HD6850 because I plan on doing some wine gaming.
    So I followed the instructions here on the wiki for ATI catalyst and I now have the drivers up and running, tried glxgears and everything is fine. The issue I am having Is that when I go under the settings menu in KDE I have the "AMD Catalyst control center" there, however I do not have the (Administrative) option that I get with all other distros. I need to run the CCC as root to beable to configure my multiple monitors.
    In a terminal when i enter;
    sudo amdcccle
    It returns with the following;
    No protocol specified
    amdcccle: cannot connect to X server :0
    So after a little digging I found this thread on the ubuntu forums that was quite helpful;
    http://ubuntuforums.org/showthread.php?t=307984
    So I ran
    DISPLAY=:0.0 xhost +
    then tried again to run
    sudo amdcccle
    and like magic it worked and I was able to configure my displays.
    However this is not a permanent fix. Can anyone see a more permanent solution to this issue? This affects more than just the Catalyst Control Center; It stops me from running any graphical application as root or with sudo. Also can anyone explain what is causing the issue?
    I have searched to the best of my ability and as you can see I have for the most part fixed the issue, however I cannot seem to find a permanent fix, nor do I really know what caused the issue to begin with.
    Last edited by relik (2011-07-03 20:21:52)

    SOLVED
    I took your advice about installking something like gksudo, and rememberd that on my kubuntu install I had something called kdesu. So Since im running KDE and not Gnome, I did some searching and found out how to install kdesudo using the AUR.
    Just followed the install guide here for Yaourt ---> https://wiki.archlinux.org/index.php/Yaourt
    Once I did that i just ran
    yaourt kdesudo
    selcted #1 and installed.
    Now when I need to run a GUI based app as root I type in
    kdesu <NAME OF APP>
    So to solve my original issue I just run
    kdesu amdcccle
    instead of
    sudo amdcccle
    This seems to work for any app that needs to be ran a root with a GUI.
    Also if your like me and you want to beable to just open CCC from your kickoff menu then do the following;
    1. Right click kickoff > edit applications
    2. Go to "Settings" > ATI Catalyst Control Center
    3. In the Command Field add "kdesu" without quotes to the begining of the line so it looks like this
    kdesu amdcccle
    4. Save
    Last edited by relik (2011-07-03 20:22:55)

  • How do i run java application on IIS

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    You can try using Macromedia JRUN version 4. Any of the version will have an ISAPI filter which you can add to the IIS site of your JSP/Servlet.
    The JRUN ISAPI filter will establish connection to the JRUN proxy listener on a port. This port is called proxy listener port. Basically once you install the ISAPI, it will have config file called jrun.ini
    Check for the ProxyPort entry in jrun.ini (or something like this - sorry, I can't remember the exact entry). It should match to the proxy listener port where of the server where your JSP/Servlet is intalled.
    Good luck !

  • How do I run java application on IIS server

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    Hi
    Check this article on JGuru. It explains how to use Tomcat together with IIS.
    http://www.jguru.com/faq/view.jsp?EID=776546
    If you also need to use EJB's you probably also want to have a JBoss installed - check www.jboss.org
    /Peter

  • How do i run java application in IIS

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    Can i use EJB components in it?Yes, you can use EJB components. IIS uses Tomcat as a plugin and Tomcats feeds IIS with HTML code. Tomcat performes all the JAVA work including EJB. This links shows you how to install it:
    http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
    Shoud be the same for version 4.1

  • How can I run a application on a machine without JDK installed?

    Hi all,
    I'm new to java,I want to know if there's a way to run a application on a machine without JDK installed, I noticed that some server application such as Domino have CORBA applications running in background,how can I set up such environment without JDK installed?
    Thanks.

    I believe there are two basic ways you could go about this.
    1) Install the JRE (Java Runtime Environment) on the machine in question.
    2) Use JSP to make a server side app that interacts via browser on the local machine.

  • How can I run other application?

    Hello everyone!
    I have few questions, for example I use this to run other application:
    Runtime.getRuntime().exec("C\\Program Files\\Opera\\Opera.exe");1. It works, but how can I run Opera.exe, when I don't know where was install Opera?
    2. I want open URL, but I don't care what browser will be use. How do this?
    p.s.
    I hope, you will understand my English =)

    In Windows, to open a URL in the default browser you simply use the START command, like this:START http://www.canadiantire.ca/Try that at the command line. You can use Runtime.exec() to do this, as has been discussed in several hundred earlier posts in this forum.

  • How can I run another application from my Form

    Dear Gurus,
    Can anybody tell how can I run a non oracle application from my Forms..
    Can it be done thru DDE package..
    If yes then how..??
    Can it be done like Excel calling thru DDE package???
    Thanks in Advance..
    Regards
    Swati..

    Keep in mind that HOST will execute where the runtime is located. This means for Forms 6.x and older, if the application is running as client/server, HOST will correctly execute on the client. If your application (Forms 6.x and newer) is run via a web browser, HOST will execute on the server and not the client machine.
    Without knowing exactly which Forms version you are using and where you want the call to be executed it will be difficult to offer suggestions.

  • How can i run external application without specifying the full path?

    for example, ms word executable file is winword.exe, but in java i am using the following command:
    Runtime.getRuntime().exec("\"C:\\Program Files\\Microsoft Office\\Office10\\winword.exe\");
    the thing is, i dont know where ms word is installed on every machine, so rather than making an assumption, do you know how i can run ms word without specifying the full path?
    thanks

    1) You could ask the user to tell you where it's at (and remember for next time)
    2) You could do a file search for it (and remember it for next time)

  • How do i run an application as administrator???

    i have downloaded a aplication and when i want to run ir, appears somethig that says that i have to run ir as administrator. How can i run it that way?? i am the only user os this mac! Thanks and sorry for my english i am from Argentina

    Lion Mac OS X Communities
    MacBook Pro
    Maybe instead of leaving us in the dark.... what is the name?
    Very possible it isn't compatible with Lion too.
    incompatible with OS X Lion

  • How can I run this application on my MacBook:      alphalist_full_setup_v3_4.exe      ?

    Hello,
    Please help. I have a MacBook and I could not run the application I need for my Tax Deadlines. Here is the alphalist set up alphalist_full_setup_v3_4.exe.
    Thank you,
    Claire Basa

    In Windows, CrossOver Mac, or through WineSkin.
    (75598)

  • How do I run Java7 Applications from the desktop

    I have a large application developed under the Eclipse RCP platform that I'd like to run on my Mac Pro.
    Previously, this was a Java 6 program, that I just clicked on in the finder, and it would start.
    This is a packaged app, not a applet or webpage.  The authors just recently updated the program to require Java 7 (of course - if it ain't broke - fix it).
    I installed Java 7  on my computer, and if I type Java -version it returns with Java 1.7.0_40-b43 as a version.  However, if I display the application in the desktop, and try to start it, it says it only has Java 6 installed, and I need to update to Java 7.  The Finder knows that it's an app, but the version of software displayed by the application is 1.6.0_65.
    Any way to make the Finder use the right version?
    Later-
    David

    It seems that the JDK proposed by Oracle does not include the possibility to run bundled applications directly (dont know why). I've succeeded in a similar case by following the instructions posted here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361#c20
    Hope this helps !
    Cheers
    Alexis

Maybe you are looking for

  • How to connect external webservice from ABAP

    Hi, Please see code pasted below and tell me what is wrong. We try to connect external webservice via https. Should I install certificate is SAP for this connection? (if YES, how can I do this?) Should I configure something else in SAP to connect ext

  • OUTGOING MAIL NOT WORKING IN OUTLOOK EXPRESS AGAIN

    This verizon email system is horrible. Right now I have not changed any of my settings but for some reason verizon yahoo email has decided not to send out any of my outgoing email settings. My outgoing STMP is set at: outgoing.yahoo.verizon.net  port

  • How much is it to repair the cracked screen on my 4s

    How much is it to repair the cracked screen on my 4s

  • Need a Popup to accept a pin number.

    Hi, I have a page where user enters a code. Based on the code, I have to display the details. One of the columns is the name. I should prompt the user to enter a pin and if the pin matches, I should display the name column. Otherwise, I should displa

  • XLReporter & User Tables

    Hi to all, I would ask this question: Is it possible to use the user tables with XLReporter? If it is possible how can i do it? I need to create a report that contains many fields of user tables. thank in advance.