How to launch an App with Root privileges - without enabling "root" user ac

Is there a reliable way to launch an Application so that it can run with "root" privileges, but without enabling the OSX root account and logging in to that account?
There is an old (and, presumably, obsolete) application called "Pseudo" which used to facilitate this, but I doubt it would be safe or reliable under OSX 10.5.
So, does anyone have any suggestions?

For a more permanent method, run the following command on the same file:
sudo chmod u+s
if the item is owned by root. This may be undone by the repair permissions command.
(27138)

Similar Messages

  • Does any one can guide how to lock particular App with password?

    Does any one can guide how to lock particular App with password?

    CaptinSprinklez wrote:
    Yes, do these steps,
    Have you tested this throughly?
    As an example 'lock' Safari via your method.
    Now use Spotlight to search for Safari, tap it - is it 'locked'?
    Now go to your email & find a link to click - Safari opens again.
    Guided access is not a 'lock' in any sense of the word, it is a tool designed to stop things happening, but many apps have multiple ways to be found or launched you can't easily block them all.
    Mallik_Hyderabad, iOS doesn't have this feature & Apple do not seem interested in adding it (7.5 years & it still isn't an option) - use a passcode with a lock screen timeout if you have any sensitive data on the device or get an Android device.

  • How to debug web app with weblogic?

    I wrote a web app that includes jsp files and some javabeans, then I put the jsp files to directory
    mydomain\applications\DefaultWebApp
    then I complied javabeans and put those classes to
    mydomain\applications\DefaultWebApp\WEB-INF\classes
    Then I start the weblogic,it runs very well.
    I modified some javabean, complie them and put classes override the old classes,
    but the web app can not find the new classes.
    Any one know How to debug web app(with javabeans) in weblogic?
    thanks!

    how to config the hot deploy?
    thxSorry, for this delay in responding. I had set notify me with email option in Watch This topic; but I never did get any email notification.
    I use wls6.1; I think the process may be very similar to this in wls8.x. In wls6.1 (sp5), this is done via the -
    Dweblogic.ProductionModeEnabled=False or
    Dweblogic.ProductionModeEnabled=True
    in the startup cmd/sh script. Out of the box, wls6.1 is set to Dweblogic.ProductionModeEnabled=False which automatically enables hot deploys.

  • How can i get apps with out using credit card info because i do not have a card ?

    how can i get apps with out using credit card info because i do not have a card ?

    Yo Chris. I've been following your answers to different threads and quite frankly, you're very keen in answering everybody regarding this stupidity that Apple has brought upon its customers. Kudos to you. But the problem is, most of the time, in some devices, your solution doesn't work because the NONE option is not there. The same goes for me.
    Meanwhile, I found a temporary workaround for the iPhone 4s, iPad 2 and iPod Touch 4th Gen.
    Register a free Apple ID from the iCloud Settings.
    Go to Settings>iCloud>Account>Tap Payment Information on the Storage Plan Category.
    Fill in the other boxes and choose "None" on Credit Card Information.
    That's it! Hope I helped those who still couldn't find the "None" Option.
    Must be running IOS 5.0.1 though, else there would be no iCloud.

  • How to publish iPhone Apps with Flash CS5 for beginners

    After many trial/errors and with lots of support from this site, I've decided to start building some tutorials to help people get into the packager. This is the first one and, now I'll work on a usual erros handle tutorial.
    Any comments and/or critics are welcome.
    http://www.chrisid.com/blog/2010/10/how-to-publish-iphone-app-with-flash-cs5-for-beginners /
    cheers,
    Chris.

    It helped me a lot, exept I hav this little problem ..
    I can't select the .p12 file .. it's disabled..

  • HT204266 How do I update apps with the new version of itunes

    How do you update apps with the new version of Itunes ?

    If you're at the iTunes store, click on Library button at the top right. Then on the top-left side click on Apps and at the bottom right click on Check for updates.

  • How to Integrate Oracle Apps with BPEL

    hi
    How to Integrate Oracle Apps with Fusion Middleware(BPEL) ?
    Please Provide me steps:
    Regards,
    Khushal

    hi,
    There is an adapter thats being provided with the standard adapter set with SOA installation . There are several ways of integrating with Oracle Apps . The adapter has all the options listed out.
    Regards,
    Ajay

  • Can someone tell me how to buy an app with an iTunes gift card.  Is it possible to do it?

    Can someone tell me how to buy an app with an iTunes gift card.  Is it possible to do it?

    redeem the gift card first (bottom of itunes store on ur ios device). then purchase content.

  • How do i share content with my family without becoming responsible for payment of everybody's purchases? with familysharing i mean, not home sharing

    how do i share content with my family without becoming responsible for payment of everybody's purchases?
    with familysharing i mean, not home sharing
    i have set up a familyshare for my parents and 3 siblings, all mid twenties. everybody is used to paying their own way. how do i make that continue to be the case and still keep the sharing facility open?
    e.g I don't want to pay for my sisters' music purchases - half of it i don't like - but would like access to it now and then.

    -> Home Sharing is different than logging into the iTunes store.
    You enable Home Sharing using one AppleID. Doesn't matter which you use but all devices must use the same AppleID for Home Sharing.

  • I just bought a new computer, how can I start syncing with this computer without erasing everything already on my iphone?

    I just bought a new computer, how can I start syncing with this computer without erasing everything already on my iphone?
    Everytime I try to use the option sync manual it wants me to erase everything.
    Please help

    The iPhone can be synced to one and only one computer at a time. Before you "marry" it to your new computer, be sure your new computer contains all the old computer's information. When you sync the iPhone to a new computer, it will be erased first. Then, whatever is on your iTunes Library will be synced to the iPhone.
    Read: iTunes: How to move your music to a new computer
    You can also copy its previous backup from the old computer to the new one, then "restore from backup".
    From iTunes: About iOS backups
    Where iTunes backups are stored on your computer
    The folder where your backup data are stored varies depending on the computer's operating system. Make sure the backup folder is included in your periodic data-backup routine.
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press the Return key.

  • How to launch an application with elevated administrator account privilege from windows service even if the account has not yet logon

    Here is the case:
    OS environment: Windows 7
    There are two user accounts in my system, standard user "S" and administrator account "A", and there is a windows service running with "Local System" privilege.
    Now i logged-in with account "S", and i want to launch an application with elevated administrator account "A" from that service program, so here is the code snippet:
    int LaunchAppWithElevatedPrivilege (
    LPTSTR lpszUsername, // client to log on
    LPTSTR lpszDomain, // domain of client's account
    LPTSTR lpszPassword, // client's password
    LPTSTR lpCommandLine // command line to execute e.g. L"C:\\windows\\regedit.exe"
    DWORD dwExitCode = 0;
    HANDLE hToken = NULL;
    HANDLE hFullToken = NULL;
    HANDLE hPrimaryFullToken = NULL;
    HANDLE lsa = NULL;
    BOOL bResult = FALSE;
    LUID luid;
    MSV1_0_INTERACTIVE_PROFILE* profile = NULL;
    DWORD err;
    PTOKEN_GROUPS LocalGroups = NULL;
    DWORD dwLength = 0;
    DWORD dwSessionId = 0;
    LPVOID pEnv = NULL;
    DWORD dwCreationFlags = 0;
    PROCESS_INFORMATION pi = {0};
    STARTUPINFO si = {0};
    __try
    if (!LogonUser( lpszUsername,
    lpszDomain,
    lpszPassword,
    LOGON32_LOGON_INTERACTIVE,
    LOGON32_PROVIDER_DEFAULT,
    &hToken))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if( !GetTokenInformation(hToken, (TOKEN_INFORMATION_CLASS)19, (VOID*)&hFullToken,
    sizeof(HANDLE), &dwLength))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if(!DuplicateTokenEx(hFullToken, MAXIMUM_ALLOWED, NULL,
    SecurityIdentification, TokenPrimary, &hPrimaryFullToken))
    LOG_FAILED(L"DuplicateTokenEx failed!");
    __leave;
    DWORD dwSessionId = 0;
    WTS_SESSION_INFO* sessionInfo = NULL;
    DWORD ndSessionInfoCount;
    bResult = WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE, 0, 1, &sessionInfo, &ndSessionInfoCount);
    if (!bResult)
    dwSessionId = WTSGetActiveConsoleSessionId();
    else
    for(unsigned int i=0; i<ndSessionInfoCount; i++)
    if( sessionInfo[i].State == WTSActive )
    dwSessionId = sessionInfo[i].SessionId;
    if(0 == dwSessionId)
    LOG_FAILED(L"Get active session id failed!");
    __leave;
    if(!SetTokenInformation(hPrimaryFullToken, TokenSessionId, &dwSessionId, sizeof(DWORD)))
    LOG_FAILED(L"SetTokenInformation failed!");
    __leave;
    if(CreateEnvironmentBlock(&pEnv, hPrimaryFullToken, FALSE))
    dwCreationFlags |= CREATE_UNICODE_ENVIRONMENT;
    else
    pEnv=NULL;
    if (! ImpersonateLoggedOnUser(hPrimaryFullToken) )
    LOG_FAILED(L"ImpersonateLoggedOnUser failed!");
    __leave;
    si.cb= sizeof(STARTUPINFO);
    si.lpDesktop = L"winsta0\\default";
    bResult = CreateProcessAsUser(
    hPrimaryFullToken, // client's access token
    NULL, // file to execute
    lpCommandLine, // command line
    NULL, // pointer to process SECURITY_ATTRIBUTES
    NULL, // pointer to thread SECURITY_ATTRIBUTES
    FALSE, // handles are not inheritable
    dwCreationFlags, // creation flags
    pEnv, // pointer to new environment block
    NULL, // name of current directory
    &si, // pointer to STARTUPINFO structure
    &pi // receives information about new process
    RevertToSelf();
    if (bResult && pi.hProcess != INVALID_HANDLE_VALUE)
    WaitForSingleObject(pi.hProcess, INFINITE);
    GetExitCodeProcess(pi.hProcess, &dwExitCode);
    else
    LOG_FAILED(L"CreateProcessAsUser failed!");
    __finally
    if (pi.hProcess != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hProcess);
    if (pi.hThread != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hThread);
    if(LocalGroups)
    LocalFree(LocalGroups);
    if(pEnv)
    DestroyEnvironmentBlock(pEnv);
    if(hToken)
    CloseHandle(hToken);
    if(hFullToken)
    CloseHandle(hFullToken);
    if(hPrimaryFullToken)
    CloseHandle(hPrimaryFullToken);
    return dwExitCode;
    I passed in username and password of account "A" to method "LaunchAppWithElevatedPrivilege", and also the application i want to launch, e.g. "C:\windows\regedit.exe", but when i run the service program, i found it do launch
    "regedit.exe" with elevated account "A", but the content of regedit.exe is pure back. screenshot as below:
    Can anyone help me on this?

    You code is not dealing with the DACL access to Winsta0\Default.  Only the LocalSystem account will have full access and the interactively logged on user which is why regedit is not displaying properly.  You'll need to grant access to your user. 
    You also need to deal with UAC since that code is going to give you a non-elevated token via LogonUser().  You need to get the full token via a call to GetTokenInformation() + TokenLinkedToken.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.

  • How to create an app with this function?

    Hi, people. Total beginner here.
    How can I create an application that auto-generates instantly downloadable PDF files with contents based on whatever the user chooses to click on or type on the front-end interface. I saw such Flash app before on a Facebook Page so I kinda believe it's possible.
    Any help would be appreciated. Thanks!

    you can try using an actionscript class like purePDF (http://www.sephiroth.it/weblog/archives/2010/02/purepdf_a_complete_actionscript_pdf_l.php) or use server-side code like fpdf (www.fpdf.org).

  • How to publish android app with the new AIR 2.6 ?

    Please anyone can help to instruct the correct way to install the new AIR SDK?
    I work with Flash IDE and don't know how to link them...
    And another noob question, are there any differences between "AIR Android" and "Adobe AIR 2" in publish settings when I'm going to create an android app with up-to-date AIR version? I was very confused by the scenario that as long as I upgraded to AIR2.6 SDK, "AIR Android" remains 2.5 though "Adobe AIR2" will surely be 2.6?
    Much appreciated for any help.

    To create an APK package, use the ADT package command, setting the target type to apk for release builds, apk-debug for debug builds, or apk-emulator for release-mode builds for running on an emulator.
    adt     -package
        -target apk
        -storetype pkcs12 -keystore ../codesign.p12
        myApp.apk
        myApp-app.xml
        myApp.swf icons
    Type the entire command on a single line; line breaks in the above example are only present to make it easier to read. Also, the example assumes that the path to the ADT tool is on your command-line shell’s path definition. (See Path environment variables for help.)
    You must run the command from the directory containing the application files. The application files in the example are myApp-app.xml (the application descriptor file), myApp.swf, and an icons directory.
    When you run the command as shown, ADT will prompt you for the keystore password. (The password characters you type are not displayed; just press Enter when you are done typing.)
    You can find more details here

  • How do i share apps with Home Sharing?

    How do I share apps from one iPhone/iPad to another with Home Sharing?  "Automatically download apps" is checked on both computers on the network, but they never show up.

    As indicated by ckuan, as long as all devices are using the same Apple ID for store purchases then you will be able to share everything you purchase from iTunes. Just make sure you log-in to the iTunes Store on each device using the same Apple ID.

  • TS1702 How do you close apps with this new update?

    How do you close apps? On the new ios7

    I found this by sergzak! Thanks serg!
    A*iOS 7 closing running apps*
    Double-tapping the Home button will bring up the running apps icons along with an app screenshot "card" above the icon. Tap-drag the app's -card- (NOT the icon) up and off the screen.

Maybe you are looking for

  • Regarding about Ipad with the I-phone all in one? When will be  available to the public.

    Regarding!!! My regard is about I Pad with the I-phone all in one? When  will be available  for the public.? Thanks.

  • How to make Page View Mode user dependent?

    Greetings! In our company there are a few developers working with Apex. Now some prefer the new "Tree View"-view on the page layout, I prefer the old "Component View" and often each one has to switch back to his own setting, because someone else chan

  • Creative Suite 2 - want to upgrade

    I currently have Creative Suite 2 and will be getting a MacBook Pro (with Leopard) and know that CS2 won't work on it. I would like to upgrade to CS3, but didn't know if I would be able to go to CS4 straight from CS2. Thanks!

  • SPAM update problem

    In am trying to update SPAM form ver 7.0/21 to 7.0/26. I am in client 000 update is giving error message Error Phase IMPORT_PROPER Reason of error TP_STEP_Failure Return code 0012 Error message OCS package SAP tp step 'H' retuen code 12

  • Ghost Files on Thumb Drives??

    So whenever I delete a file off my thumb drive while using my mac, for some reason, it shows up as having been deleted, but I don't regain memory space. When I bring my thumb drive to a PC, it shows all these files as still being on the thumb drive.