Is there anything work the same as gksu in ubuntu?

Resently, I am programming in bash for mac, but I do need something like gksu in ubuntu. Hopefully, it might provide a visual Authenticate dialog to the enduser, so that they can run some bash as root.
Thanks

Bummer, you missed the boat on this one
Do you want the bad news or the bad news?
Here is the bad news. The traditional way to do this was through the Authorization Services API. Unfortuantely, two of the basic routines in that API were deprecated in Lion. If you set your deployment to 10.6, you can use the old routines that are more or less straightforward.
Now the bad news. You can't do any privilege escapation with a sandboxed app in the App Store. Ideally, just don't do it. There are ways around these things in most cases. If you want Lion, Mountain Lion, or ??? support, you are going to have to use something newer. That something is part of the old Authorization Services API along with launchd and SMJobBless. I would love to direct you to additional information on the topic, even in the Developer forums, but there is none. Apple's instructions are to just take the Better Authorization example and swap in launch and SMJobBless. Simple for them.
Your only ray of light is AppleScript. If you really want to execute as root and have no other option, you can write an AppleScript that calls "do shell script" "with administrator privileges".
One more point, bash is GPLv3 so it will never be updated on MacOS X. I suggest switching to zsh. For scripting, always use sh.

Similar Messages

  • HT4623 Is this the most up to date article on up dating the iPhone - it there anything about the problems relating to the up date to OS 6 - my G3 no longer works and Apple seems to have gone to ground.  No Genius bar appointments available for a week!

    Is this the most up to date article on up-dating the iPhone OS - is there anything about the problems relating to the up-date to OS 6 - my G3 no longer works and Apple seems to have gone to ground.  No Genius bar appointments available for a week!

    iOS 7 devices need iTunes 11.1 or newer to sync.  Depending upon your computer and the OS it is running, you may not be able to upgrade to iTunes 11.1 based on the requirements for iTunes 11.1.  What computer and OS are you running your iTunes on?  From the iTunes download pages I see the requiorements are:
    Macintosh System Requirements
    Mac computer with an Intel Core processor
    OS X version 10.6.8 or later
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    Windows System Requirements
    PC with a 1GHz Intel or AMD processor and 512MB of RAM
    Windows XP Service Pack 2 or later, 32-bit editions of Windows Vista, Windows 7, or Windows 8
    64-bit editions of Windows Vista, Windows 7, or Windows 8 require the iTunes 64-bit installer
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store

  • An automatic update arrived and installed itself but then told me it was incompatible with my version of Mac: 10.5.8. Firefox version 3.6.26 is on it now. It seems to work the same. Is there going to be a problem or should I ignore that message?

    An automatic update arrived and installed itself but then told me it was incompatible with my version of Mac: 10.5.8. Firefox version 3.6.26 is on it now. It seems to work the same. Is there going to be a problem or should I ignore that message?
    If I must replace it where do I get an older version?
    Thanks

    Firefox '''4 '''versions '''and later do not run on a PowerPC Mac''' and require at least OS X 10.5 and an '''Intel Mac'''.
    The latest''' supported''' version for your os is '''3.6.26''' , your are fully updated.
    see for more info:
    [http://www.mozilla.org/en-US/firefox/3.6/system-requirements/ Firefox 3.6 System Requirements]
    [http://www.mozilla.org/en-US/firefox/10.0/system-requirements/ Firefox 10 System Requirements]
    [For older Macs that aren't supported in Firefox 4+ versions, if you like, try TenFourFox for PowerPC's running Mac 10.4.11 & 10.5.8]
    http://www.floodgap.com/software/tenfourfox/
    http://tenfourfox.blogspot.com/
    https://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Tryoing to play QVR. Works on a MAC with version 7. Doesn't work the same using Version 10.

    Have some .mov files that work just find on my MAC that has QVR player version 7. When I try these same files on a MAC that was recently updated automatically and has QVR version 10, the .mov doesn't work the same way.  Is there a way to set parameters in version 120 to behave like version 7 or alternatively can I download version 7?

    Mac OS X 10.6 includes QuickTime versions 10.0 and 7.6.3. The QuickTime 7 player will only be present if a QuickTime Pro key was present at the time of installation, or if specified as part of a custom install, or individually downloaded:
    http://support.apple.com/kb/dl923
    Snow Leopard update 10.6.4 included an update to 7.6.6 (if installed). You can install it from the above link  even though it says for 10.6.3. It's the same version of QuickTime Player 7.6.6.
    (Only QuickTime Player 7.6.3 or 7.6.6 can be updated to "Pro".)
    A Mac OS X v10.6, OS X Lion, and OS X Mountain Lion-compatible version of QuickTime Player 7 is available for use with older media or with AppleScript-based workflows. QuickTime Player 7 can be used to playback formats such as QTVR, interactive QuickTime Movies, and MIDI files. Also, it supports QuickTime 7 Pro registration codes for access to QuickTime Pro functionality.
    How to install Quicktime Player 7 on Snow Leopard, Lion and Mountain Lion when it is not already present:
    http://support.apple.com/kb/HT3678?viewlocale=en_US&locale=en_US

  • I would like to burn an i-photo album with subtitles to a CD with the photos in the same sequence as they appear in the album and to have the CD work the same on a PC as on the MAC.

         I have created several i-photo albums with subtitles and proceeded to burn them to a CD. The CD burned with the correct subtitles, however, the photos did not appear in the same sequence.  I tried another method and the photos appeared in the proper sequence, however, my subtitles did not appear as in the albums. Is there a method that I can burn an album to a CD with the photos in the same sequence and with the same subtitles as in the album?
         I would also like this CD to work the same on a PC as it does on a MAC.

    sorry but files on a CD have no order - filles are simply bits on the disk - the file viewer used to view them determines the order of viewing - for example using the finder on the Mac you can view files in Alpha order, date created order, date modified order, file size  order, etc, etc, etc
    If you expor tthe files to a desktop folder using the sequetial option then the finder (and probably Windows explorer) would display them in the order you want IF the user views them in alpha order
    Bottom line is that you have no control over how the end user views files - that they make
    LN

  • Why doesn't the rotate gesture on my trackpad behave as it used to for switching between tabs when it works the same with all other programs besides Firefox?

    Why doesn't the rotate gesture on my trackpad behave as it used to for switching between tabs when it works the same with all other programs besides Firefox?
    I changed the about:config to make the rotate gesture move between tabs, and it worked great for well over a year. Now it behaves erratically as described here:
    https://bugzilla.mozilla.org/show_bug.cgi?id=877598
    It used to be very controllable to move one tab over, now it is erratic and moves quickly and to unexpected tabs regardless of how slow I do the rotate gesture. This is the main reason I use Firefox over Chrome and I would like to continue to do so unless there is no fix to this.

    Just set the browser.gesture.twist.threshold to something around 15-25.

  • If my uncle buys an ipod touch from manchester and sends it to me in canada, will it work the same

    If my uncle buys an ipod touch from manchester and sends it to me in canada, will it work the same? Is there gonna be any diffrerence as if i bought it here in canada, like Wi-fi and apps?

    Is there gonna be any diffrerence as if i bought it here in canada, like Wi-fi
    not really. in fact, a European model will be able to connect to a few more wireless channels
    (click on image to enlarge)
    otherwise they are the same.

  • Since the Hotmail Watcher is no longer working, if I downloaded the X-notifier, would that work the same?

    Since the Hotmail Watcher is no longer working, if I downloaded the X-notifier, would that work the same?

    Maggie,
    You currently have an open thread at [/questions/994827]. Please continue there. You are violating the [[forum rules and guidelines]] more specifically,
    <blockquote> Create one thread and only one thread for each subject you want to discuss. </blockquote>
    I'll be closing this thread!

  • Oracle Forms 10G(tabbed canvasses not working the same as in Forms 6i)

    Hi everyone,
    I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
    The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
    Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
    Thanks

    duplicate
    Re: Oracle Forms 10G not working as Oracle Forms 6i

  • I could not pair my bluetooth device with my ipad mini retina display. Is there anyone facing the same problem?

    I could not pair my bluetooth device with my ipad mini retina display.
    My ipad could not detect the bluetooth device. I do not facing this problem with my iphone and my older ipad on the same bluetooth device.Is there anyone facing the same problem?

    Yes I tried pairing with my bluetooth car hands-free set - Not discoverable.
    I tried to pair with my bluetooth headset - Also not discoverable.
    I have no problem with my other apple products my older ipad2 and my current iphone5.
    Just this ipad mini retina display could not discover the above bluetooth device.
    Any idea on how to solve this? Thnaks.

  • Why dont the music & music videos work the same as on iPhone?

    why dont the music & music videos work the same as on iPhone?

    Gettingonmynerves, in my honest opinion, you will be gettingabsolutelynowhere in your attemp to edit AVCHD files natively with PE using a Laptop.
    Your system is seriously underpowered for the task at hand.
    Most folks would recommend at least a Quad Core desktop, tuned for perfomance.
    What you might try is to convert the AVCHD to traditional HDV via this link:
    http://forums.adobe.com/thread/390605?tstart=0
    This may buy you some relief, but even with the convert, I think it will still be a challenge to edit these formats on a laptop.
    You could also try to down convert the video via the Camera, if that feature is available. I don't have or use a High Def Camera at this time so I can't help much with the Camera possibilities.
    Again it's not an issue with the laptop itself, it probably works great for it's intended use, unfortunately it is not up to the task, performance wise, for editing the ACVHD or High Def formats with PE...
    Good Luck...

  • HT1229 Can i move the iPhoto folder onto an external HDD? Will it work the same way after moving onto an external HDD? do I then need to have the external connected at all times, even when I don't use iPhoto?

    I have a macbook pro, but the amount of pictures I have now exceeds 500GB
    I want to have all the pictures in iPhoto, so I could see them and edit them in iPhoto.
    Which means... I need the iPhoto file folder in an external HDD to use iPhoto that way.
    Can i move the iPhoto folder onto an external HDD?
    Will it work the same way, as if the iPhoto folder is on the internal drive?

    yes
    yes
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • When using the same Firefox profile in Ubuntu 12.04 and Windows 8.1, how can I keep autoscrolling enabled in Firefox for Linux?

    I access the same Firefox profile in Ubuntu 12.04 and Windows 8.1 (Windows fast startup disabled). I have the newest version of Firefox (26.0) on each system.
    Every time I launch Firefox in Ubuntu after using the profile in Windows, I notice that autoscrolling is disabled. So I have to manually enable it every time after using my profile in Windows.
    Conversely, every time I launch Firefox in Windows after using the profile in Ubuntu, I'm asked whether I would like to set Firefox as my default browser. I choose "No", first making sure that there is no check mark next to "Always perform this check when starting Firefox". I have to do this every time after using my profile in Ubuntu, despite the fact that if I check my preferences in either OS, "Always check to see if Firefox is the default browser on startup" is not enabled. Note that Firefox is my default browser in Ubuntu but not in Windows, but I have no need for Firefox to check whether it's the default every time it starts in either OS.
    I don't know whether these problems are related, but it seems likely that they are. Is there a way that I can keep these settings constant, so they don't reset every time I switch operating systems?

    I'm sure that when I close the browser in either OS before switching to the other, the following two conditions are true in the Advanced tab of the Firefox Preferences menu:
    1) "Use autoscrolling" is enabled (with a check mark)
    2) "Always check to see if Firefox is the default browser on startup" is disabled (no check mark)
    The autoscrolling feature allows you to scroll by holding down the middle mouse button and moving the mouse up and down. The extension you linked to, ScrollyFox, enables scrolling by clicking a button in the Firefox UI, which is quite a different feature. So unfortunately the problems still remain.

  • Adobe Air ServerSocket not Working the same on XP/Vista/7

    I'm having a strange problems with an air socket server i've written.
    I have an Air application written using Flash Builder 4.  It's basically a simple HTTP server.  It's purpose it to open a server on a specific port and serve files (both html and swf) out to a web browser.
    When i run the air application on my desktop (windows 7, firefox 4.0b11, ie8, flash builder 4 compiled with flex sck 4.1.0) everything works correctly.  Whether i run the server through the Flash Builder debugger or actually do the full packaging and install as a standalone air app then run it using the Air Runtime like any user would.  I load up the server, punch in the address from anywhere and the page loads, and the requested swf displays correctly.  While the server is running on my desktop i've tested clients including Windows XP and Vista with IE8, HTC Evo4g Android phone, and the Playstation 3 browser.  From any tested client with the server running on my desktop all requests are handled correctly and pages/swfs load and display correctly.
    The problem comes when i run the air app on another computer.  When i package it and install it on one of my two test systems (Windows XP and Windows Vista) things start to go wonky.  The Air app loads on the two test systems but when a client tries to use their web browser to request a page things don't display correctly.  The client can load the html file fine but the swf that it receives from the server does not display.  I can check the log on the status server and see the HTTP GET being processed, and the file sent.  However, the browser simply displays a blank box where the SWF should be.  With the server running on either of my two test boxes (XP and Vista) the same clients who can connect and display html and swf's delivered from the server experience this problem.
    I think i've eliminated browser request as the problem from testing different browsers on different OS's on each of the test installations.  As best I can tell, the problem is with the server side of the app.  The server uses the SocketServer class to listen for a connection and then writes out the HTML headers and content to the socket manually, i'm not using any external libraries for writing to the socket.
    here's the code for writing to the socket when a swf is requested.
         var content:ByteArray = new ByteArray();
         var stream:FileStream = new FileStream();
         stream.open(file, FileMode.READ);
         stream.readBytes(content);
         stream.close();
         socket.writeUTFBytes("HTTP/1.1 200 OK\n");
         socket.writeUTFBytes("Content-Type: application/x-shockwave-flash\r\n");
         socket.writeUTFBytes("Content-Length: " + content.length + "\r\n\r\n");
         socket.writeBytes(content);
    I don't believe the problem is with the socket write since it works on my desktop but not when the server is running on another.  I'm wondering if the problem is with an external system dependancy.  Are there any external libraries, visual c++ runtimes, tcp/ip libraries that Air uses to fulfil requests to sockets on different operating systems/versions?  I've been searching around the web and browsing through adobe live docs for a few hours on this but can't seem to find a resolution anywhere.  If more detail is needed, please let me know.  Any help would be much appreciated.

    I appreciate you taking the time to look at this.  Good to know I'm not completely crazy, that makes me feel a little better.
    The 178774 is bytesLoaded()   and 1096810 is bytesTotal() as seen by the swf.
    That's what i was experiencing.  The issue you're seeing with it running on vista of the swf apparently only loading 180k of the 1 meg is what i'm experiencing.  For me that  happens when the server side of things is running on my XP or Vista  machine.  On Win 7 it works fine.  Also, for mp3's it seems to only download the first couple seconds.  When i stream an mp3 from the server it only plays a couple of seconds and stops.
    Not sure if the index.html file that it serves out is small enough that it gets it in one cycle but for larger files it closes out the socket before sending all the data.
    If i get some free time tomorrow i'll see about getting an Ubuntu  virtual machine going and test it there as well.  I don't have access to  a mac to try it on OSX.

  • AVReceive2 and AVTransmit2 not work the same...HELP

    I am using AVReceive2 and AVTranmit2 in a programs I am developing. I have run the two programs as the standalones they are and I get the video or audio I send across. But in my program when the program calls up the routines it launches and only does a hand full of what it should do. It is also like the SessionListener, ControllerListener, and ReceiveStreamListener are missing. The program listens for a RTP connection to come in but it never completes the action when I know that there is a connection being attemped. The same istrue for the AVTransmit2 it does not create the RTP session that I know is supposed to go out. It is like skipping a large piece of code. Even though they are all contained correctly. If someone can give me an answer to why these two programs work out side of what I am doing and why they are not in what I am building it would be highly appreciated. ASAP I need this working by tomorrow morning. Thanks
    public CommPt(String rcvr,String sender,String rcvr2) {
            initComponents();
        //    System.out.println("start to receive signal");
       //     if (pick.equals("Receive")){
       //     at = new AVTransmit(new MediaLocator("vfw://0"),"192.168.1.101","22222",null,new MediaLocator("javasound://8000"));
       //             at.start();
       //     String argsv[]={"192.168.1.102/22222","192.168.1.102/22224"};
            avReceive = new AVReceive(rcvr);
            avReceive.start();
       /*     while((avReceive.getConnection()).equals("false")){//carlos
                System.out.println("2");//carlos
                if (!(avReceive.getConnection()).equals("failed")){//carlos
                    System.out.println("3");//carlos
                    avReceive =new AVReceive(rcvr2);//carlos
                    avReceive.start();//carlos
                    break;//carlos
                }//carlos
            }//carlos*/
          /*  if (!avReceive.initialize()) {
             System.err.println("Failed to initialize the sessions.");
             System.exit(-1);
            // Check to see if AVReceive is done.
            try {
             while (!avReceive.isDone())
              Thread.sleep(1000);
         } catch (Exception e) {}
         System.err.println("Exiting AVReceive");*/
        //    if (pick.equals("Transmit")){
                    Object stand=new Object();
                 //   System.out.println("Start Time delay");
                    try{
                        Thread.sleep(5000);
                    catch(Exception ex){
                        System.err.println(ex);
                 // System.out.println("time delay ended");
                    String [] temp2;
                    temp2=sender.split("\\ ");
                    at = new AVTransmit(new MediaLocator(temp2[0]),temp2[1],temp2[2],null,new MediaLocator("javasound://8000"));
                    at.start();
        }Edited by: Laughincrow on Nov 29, 2009 5:02 PM

    Laughincrow wrote:
    ASAP I need this working by tomorrow morning. ThanksI guess since it's tomrorow morning I shouldn't bother to comment on this thread...
    P.S. If you don't want to take the time to remove your commented-out code that makes it nigh-on impossible to see what your code is actually doing, then why would anyone want to take the time to help you?

Maybe you are looking for

  • Max No. of Records in a Table

    Dear Sir/Madam, I have the Transaction table with 10 Million records. While Tuning the table it takes 5.8 seconds to fetch records from it with Cost based optimization. I have Partitioned my table based on months and necessary index is been created.W

  • How to use the namespace with a parser?

    I want to use the namespace in my project. For this reason, I use a sample from http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/sax/7b_pe.html http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/dom/5_ns.html to test my understanding. The slidesh

  • Sort table of objects by object attribute

    Hi all, I would like to write method for sorting table of objects. Sorting will be according selected attribute of object. My problem is that when I have dynamic data, I'm not able to access attributes of object. Here is example in code. Problematic

  • Call C++ programs from PL/SQL

    Can someone give me an example of how to call C++ programs from PL/SQL ASAP please? Thanks Chitra

  • Dial-up starting on its own

    See my previous question. If I leave my PC to just go to sleep on its own, as per C) method, it sometimes starts to dial up, and I have to hurriedly hit the Disconnect button (Am not on Broadband, it is not yet available my area), so I have to be car