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.

Similar Messages

  • I developed app in mac 10.6.8 with xcode 3.2.6.how can i run this app in ipad device

    i developed app in mac 10.6.8 with xcode 3.2.6.how can i run this app in ipad device

    actually i planned to get  provisioning profiles from apple by paying 99$ in following website
    https://developer.apple.com/programs/start/ios/ and followed by
    https://developer.apple.com/programs/start/standard/.
    but in last link,following thing were mentioned at bottom -
    Technical Requirements
    You must have an Intel-based Mac running OS X 10.8 Mountain Lion or later to develop and distribute iOS apps and Mac apps.
    but i\m using mac running OS X 10.6.8 snow leopard.
    Doubt:can't i run my app in ipad device?\
    Thank's in advance..

  • Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    The Mac OS X and iOS versions are separate products

  • How Do I Run the Apps?

    Hello all - have an HP Envy 4500, using the eprint centre, sched apps printing OK, but confused as to how to run the apps on demand. For example, HP Quick Forms. I can schedule, I can look at samples, but how does one print out a desired sheet such a sheet of graph paper on demand? I can't figure that one out, and also how does one post a comment. I don't see any button for that either. Another example is the App "Universal Crossword". I can schedule it and have them print, but how can I manually print one? So this applies to all the apps, how does one simply use them on demand instead of scheduling. Clickong on the app itself just gives the sample views.
    Thanks for any help.
    This question was solved.
    View Solution.

    Hi harrc,
    Welcome to the HP Support Forums. I see that you have some questions about the apps you find in HP Connected.
    To print a sample of any of the HP Quick Forms, you can print them on demand from the front panel of the printer. As for the remaining apps, there isn’t an on-demand option available. For reference I’ve included the Getting Started With HP Printables.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • 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.

  • How can I run youtube App in the background on my ipad ISO 7 ?

    I want to run youtube app not using safari in the background on my ipad using iso7 please help !!

    iOS doesn't truly multi-task, so you can't run one app in one window and another in a separate window. There are probably some good reasons for this, including battery life, but you'd have to ask Apple:
    http://www.apple.com/feedback/ipad.html

  • [SOLVED] Problem with running GUI apps as root

    Hi,
    I have a serious problem with running any kind of software having GUI as root, which is indispensable for editing system files. For example I want to edit /etc/pacman.conf file with KWrite, and here's what I get
    [zbyszek@barca ~]$ xhost +
    access control disabled, clients can connect from any host
    [root@barca zbyszek]# kwrite /etc/pacman.conf
    kwrite(11282): Session bus not found
    KCrash: Application 'kwrite' crashing...
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
    sock_file=/root/.kde4/socket-barca/kdeinit4__0
    Warning: connect() failed: : Nie ma takiego pliku ani katalogu
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
    drkonqi(11284): Session bus not found
    Can anyone help me with this? Can anyone tell me how to login as root?
    Thank you in advance.
    Last edited by Zibi1981 (2010-10-05 19:30:20)

    O.K., but how to run KWrite as root on my account??? That was my main question
    karol wrote:
    Try running 'xhost +' as root.
    https://bbs.archlinux.org/viewtopic.php?pid=817674
    Maybe vim is in edit mode when you press 'i' but it doesn't show '-- INSERT --' at the bottom of the screen.
    Here you are
    [root@barca zbyszek]# xhost +
    access control disabled, clients can connect from any host
    [root@barca zbyszek]# kwrite /etc/pacman.conf
    kwrite(12941): Session bus not found
    KCrash: Application 'kwrite' crashing...
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
    sock_file=/root/.kde4/socket-barca/kdeinit4__0
    Warning: connect() failed: : Nie ma takiego pliku ani katalogu
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
    drkonqi(12942): Session bus not found
    Last edited by Zibi1981 (2010-09-25 10:19:50)

  • How do I run 2 apps simultaneously?

    I'd like to run a Metronome App (which actually keeps running even if I "back out" to the main screen - as opposed to some other apps that quit if you "back out" to the main screen) while I listen to iTunes (a downloaded podcast, for example) or while I'm watching/listening to a YouTube Video. Is possible?
    In case anyone is wondering, I would not be listening to music with the metronome in the background. Instead I would be listening to a talk, interview or whatever...
    Thank you and I look forward to figuring this one out...
    Eduardo

    thank you James, is there a "mixer" app by any chance, or something that would mix the 2 audios? Or should I give up on it?
    Thanks

  • How can I run carbon apps on Lion?

    I've just installed Lion on my MacBook Pro, and found out that Power PC apps are not supported now=( is there a way to run a carbon app on lion?

    Rosetta is now gone from Lion so any apps that have not been moved over to Intel won't work. So far there doesn't appear to be any way to get Rosetta back.

  • How do I run java app when user calls a number?

    Hi all
    Is it possible to run a java app everytime a user calls a number? It has to run before the call is placed. The app will do its job and then place the call using PlatformRequest().
    Thanks
    hsogra

    Hi,
    I believe in general this is not possible.
    J2ME was designed in such a way that J2ME apps don't have permission to interrupt the normal functions of the phone (making/receiving calls, sending/receiving SMS).

  • How do you run applications as NON root without any x (server) ?

    Hi! I'm trying to run mpd as a user right after init. According to the wiki one should use .xinitrc, but since there's no X server for me to run it won't work for me.
    I've tried this command in bashrc "( sleep 15 && mpd ~/.mpd/mpd.conf )" and yes it works assuming I ssh into my server.
    Where do you put script/commands to launch an application as a NORMAL user after init?
    My Setup:
    archlinux on a server, so no graphical input.
    Thanks

    dyscoria wrote:
    I don't use mpd, but you could try putting in /etc/rc.local which executes straight after daemons:
    su $username -c "mpd ~/.mpd/mpd.conf"
    Yeah I've already tried that also tried  (sleep 50 && mpd ~/.mpd/mpd.conf) &. But none of the commands executes to my knowledge, because it's been over 5 minutes now and mpd still hasn't started. Both commands works just fine if I enter em manually in the terminal.
    jac wrote:
    You know mpd won't actually be running as root, right?
    man mpd.conf wrote: user <username>
    This  specifies  the  user that MPD will run as, if set.  MPD should never run as root,
    and you may use this option to make MPD change its user id after initialization.  Do
    not use this option if you start MPD as an unprivileged user.
    Edit: Sorry, can't get that to look normal any way I do it. Best to view it straight from the terimnal
    Hi! I understand what you mean, thanks.
    No,  I assumed it would run as root. But you see I can't launch mpd as a daemon in rc.d, it always fails for me. The easiest way for me is to "mpd my.config" in some ways.

  • How to Test run an app in my touch device(9380),I cant find alt+t+s+t in the AppWorld Home Page.

    Hi ,
    The problem iam facing now is ,I have uploaded an application in the sandbox in the vendor account of the blackberry App world(Just to test my Appliaction). so i can download it in my qwerty device(8520) by pressing alt+t+s+t in my App World Home Page, and it works fine, But when i try to download it into my Touch Device(9380), I cant even find alt+t+s+t inorder to download my application, Is there a way or an alternative to download my test app into my Touch Device(9380).

    Hi,
    Basically we are Web Development Company, i read your thread and really felt that i should help you out as a developer. searching for the solution i found this link pretty helpful as far as concern of your problem. Here it is:-
    http://www.coderanch.com/forums/banner/redirect/351
    Ios Development Company

  • How do I run Mac Apps Store without credit card number?

    Dear all,
    some years ago I started an Apple ID account, but I never used it to purchase apps. Recently I tried to download free apps using Mac Apps Store, but I was asked to complete my profile and to add my credit card number, apparently without it I cannot continue the procedure. What should I do if I do not intend to give my credit card details?
    Thank you,
    Marco

    These are the instructions to meet your needs.
    Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card

  • How can I keep certain apps from starting at login?

    I have Break Reminder installed. It isn't compatible with certain accessibility tools. It isn't something that I want to start every time I use the computer. But it does start every time I use the computer. I don't tell the computer to restart apps at start up. I don't list the apps in the Login Items list. It just starts itself. How can I keep it from starting itself?

    go to system preferences / Users Groups / Login items
    (make sure your lock at bottom left side of window is unlocked) if it isn't you will be asked to insert your user password if you don't have one just hit enter (unlock)
    from there you get to choose your startup applications simply add/remove  with +/- under the windows
    once you made changes don't forget to lock the lock to prevent changes and you should be set
    good luck

  • How do I run a Java Application on Pocket PC 2003 (iPAQ 2210)

    I am writing an application for the iPAQ 2210. It will need to commuunicate over GPRS sending POST requests to a server (I think I will be using the Java.net package) the user interface will be very simple (a few buttons and text boxes) and will capture the data entered and send it back to the server (via the POST HTTP request) and read the response from the POST.
    I believe I need to use the Personal Profile version of J2ME and I am only using the classes that it says are supported. How do I run the App on the Pocket PC. Having spoken to HP they have said I shouldn't need a virtual machine and that pocket pc 2003 has one built in! Is this so or should I get myself the Jeode Virtual machine?
    Is the Jeode machine the best one?
    Sorry to ask so many questions in one go, I'm a little lost at the moment!!
    Jon

    Hello Jon,
    I will suggest you using IBM WSDD. Although it uses its own version of JVM(J9), but it suits to your needs well.
    I think you should base your project on foundation profile(as you need some gui as well as java.net).
    regards
    -fatbrain73

Maybe you are looking for