Using launchctl with Authorization

Hi there,
I am trying to unload one of the preinstalled launchd configurations (/System/Library/LaunchDaemons/com.apple.portmap.plist) in order to load my own configuration from within an application. I use AuthorizationExecuteWithPrivileges() for this. For some reason, the unloading does not work - launchctl returns with "no such process", but if I copy the arguments to the Terminal and execute it, it works. Loading my own config works, too (though it fails because i couldn't unload the original one). Any ideas what might be the problem?
Thanks
Daniel

Post to the Unix forum under OS X Technologies.

Similar Messages

  • Using launchctl with python script

    I have been trying to get launchctl to run a python script for me every 3 minutes. I have read many threads and such to no avail. Following describes files and such.
    PLIST file location = /Users/mike/Library/LaunchAgents
    File name = scraper.plist
    File owner:group = mike:staff
    File contents =
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Prope
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>scraper</string>
    <key>OnDemand</key>
    <true/>
    <key>Program</key>
    <string>/Users/mike/scripts/python/backgroundscript/runscraper.sh</string>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/Users/mike/scripts/python/backgroundscript</string>
    <key>StartInterval</key>
    <integer>3</integer>
    </dict>
    </plist>
    SCRIPT INFO:
    Location = /Users/mike/scripts/python/backgroundscript/
    File name = runscraper.sh
    File Contents =
    #!/bin/sh
    say "hey mike"
    /usr/bin/python /Users/micahrye/scripts/python/backgroundscript/scraper.py
    File owner:group = mike:staff (fro scraper.py and runscraper.sh)
    File permissions = 755 (fro scraper.py and runscraper.sh)
    NOW about the script, I have the shell script runscraper.sh call the python script. All works from the cmd line, but does not work when launchctl calls it. I put the following in the runscraper script to make sure it was getting called:
    say "hey mike"
    So every time launchctl calls runscraper.sh I hear the "hey mike," so I know that launchctl is calling it, BUT it does not seem to call or launch the python!!!! AGAIN, if I run runscraper.sh from the cmd line I hear "hey mike" and the python script run with no problems.
    I have checked log files and found nothing.
    I have tried many things and nothing has worked, would enjoy someones wisdom
    thanks

    Post to the Unix forum under OS X Technologies.

  • SAP BO WebI Report on top of BI Bex Query with Authorization Variable

    Hi,
         We are trying to restrict row level data using BI 7.0 analysis authorization concept. We have an authorization variable in the Bex query and is working perfect in Bex Analyzer as well as in RSRT.
    Now we are trying to achieve the same thing in BO webI. We created an Universe using Authentication Mode SSO. We are on BOXI 3.1 and implemented SSO. When we try to run the query in WebI we get the error
       "A database error occured. The database error text is: Error in MDDataSetBW.GetCellData..(WS 10901)"
    Just for testing purpose, when we use query filter in WebI and use Values from List, it is showing only the authorized value it supposed to show and runs well with that value selected. But we have to achieve this without the query filter in WebI.
    So are we missing some thing here or any patch issue? Please share if you have done this type of reports in BO.
    Thanks in advance for your help.
    Moorthy.

    Yes I did run MDXTEST and it gives error as 'you do not have sufficient authorization'. The reason it is giving, I guess and we are debugging that to confirm, is first it looks for 0BI_ALL and throws error which is not the case in Bex. See the following trace in RSRT trace.
    InfoObject Properties Defined
    Reading of Directly Assigned Authorizations
    Direct Assignment Does Not Include Universal Authorization 0BI_ALL
    Reading the Indirect Assignments with Authorization Object S_RS_AUTH
    Does user have OBI_ALL?
    No, the User Does Not Have Universal Authorizion 0BI_ALL
    Negative Entry in SU53 Result of Failed Check for 0BI_ALL
    Indirect assignments found; no universal authorization
    Reduction of Authorization Dimensions on Characteristics in InfoProvider
    Reduction Successful
    Thanks!
    Moorthy

  • If I do a clean install on my MacBook Pro will I be able to re-install apps (FCP, Aperture, MS Office etc.) from a Time Machine backup, or will I need the original install DVDs with authorization codes?

    I have two questions...
    1) If I do a clean install on my MacBook Pro will I be able to re-install apps (FCP, Aperture, MS Office etc.) from a Time Machine backup, or will I need the original install DVDs with authorization codes? (because I don't have them)
    2) Has anyone ever seen anything like this before on their computers?
    The Apple Genius' were stumped by my laptop issues and said they'd never seen anything like it before and recommended I did a clean install. Below you can see my trash bin, and if you look at the "Empty" button it reads "N201" and then there's the "N39" to the left of it. You can also see these numbers over by the folder area--"SD5, SD6, SD7." But that's not all...
    When I right click on items I see the numbers again. Instead of "Open with" I get "N152" and there's an "N35" and "LB1" towards the bottom.
    I have no idea what's going on so I'm just going to do a clean install on my machine but I don't want to lose my apps. I don't have the original install DVDs for them anymore. If you have any suggestions please let me know. Thanks!

    You don't lose them.  You can always redownload them from the app store after you log back in with your Apple ID.
    "Buy, download, and even redownload.
    You can install apps on every Mac you use and even download them again. This is especially convenient when you buy a new Mac and want to load it with apps you already own."

  • Issue with authorizations for BPS

    Hi Experts,
    There was an issue with authorizations for BPS. We have a large number of agents that need to enter plan data via a layout. In order to control the necessary authorizations, we would like to filter via something similar to a user exit using a function module in order to avoid having to define authorization objects for each of the agents who have access to the systems. Right now, we are not sure if there is user exit concept available as it is for BW variables. Any body experienced similar issue may share their experience.
    Regards,
    Ankit

    Hi,
    In BPS, you can use user specific variables or you can set up a Variable of type exit. You can also have a variable of type authorization which uses the security / authorization of the BW system.
    Hope it helps...
    Cheers,
    Tanish

  • Using url with username and password in URL class

    Hi,
    I'm writting an applet in which I use getAppletContext().showDocument with an URL.
    The problem is that I'm using URLs with username and password (http://user:[email protected]/page) and it isn't working because the browser is getting the URL http://user/page.
    Is this a bug in the URL class? Or in the showDocument method?
    Is there any way to make this work?
    Thanks for any help,
    Pedro Prospero Luis ([email protected])

    I'm not sure whether this is supported behaviour. I've had this syntax fail to work in the Netscape address bar so I can't recommend it as an approach for authentication.
    If you want to authenticate the user before redirecting to the page, though, you could try creating a connection to another page on the same server and sending the authorization information then. Your browser may then be successfully authenticated.
    See http://www.javaworld.com/javatips/jw-javatip47.html for information on this.
    You might not need to read back the page from the server, just connect to it. Might work.

  • How to use CVS with JDeveloper

    Hi all!
    I'm starting a new project and I would like to know how to use CVS with JDeveloper. This is my first project where I will have two more people working with me and I don't know what the better approach is. Should I use CVS that come with JDeveloper (option Internal to Oracle JDeveloper 10g) or should I configure an external repository? In both cases, I don't know what I have to do to have CVS working properly with JDeveloper. Actually I tried to create a new CVS connection in CVS navigator (using the access method Password Server), but when I test I receive the message: Could not open connection to CVS server: general socket failure, sure I must doing something wrong.
    I'm using JDeveloper 10.1.3.0.4
    Thanks in advance.

    Thanks for you help John!
    I installed cvsnt and when I try to create a new CVS connection inside JDeveloper I receive the message: authorization failed: server adminf29786.dixamico.com.br rejected access to /Diversos/DownLoad/CVS/usr/local/cvsroot for user JMartins
    I using pserver method and JMartins is my user in windows
    There is something that I'm curious about, when I was installing CVSNT I didn't configure any user and password, is there any default user/password?
    Thanks!

  • Guest Portal Using ISE with Flexconnect Mode

    Folks,
    I have configured my guest web authentication using ISE with flexconnect mode like this:
    http://www.cisco.com/en/US/products/ps10315/products_tech_note09186a0080bcb905.shtml
    After done, I connect the SSID but cannot log in. I cannot get IP address and in the ISE I can see that my device has already hit my authorization profile and the status is pending. Can anyone help me with this?

    As Richard says, check to see if you have an IP address.  If not check the AP settings for FlexConnect.  Is the mode on the AP set right?  Please confirm that you are using FC local switching and not centralised switching? 
    Is the VLAN tagging enabled on the AP, and/or the VLANs on the AP switchport set right?

  • Red Light with Authorization Object in PFCG

    Hello All - I have a question with authorization objects, there are three roles with red lights 'ON' in authorization object screen in our PRD. However users who are using these roles have no auth issues, standard procedure is to make all lights green in PFCG by maintaining these auth objects.
    Big question is "what is the down fall by leaving these objects RED, I need to support my theory when I say all lights green with auth objects.
    Why best practise says maintain all lights to green?
    Please suggest, appreciate your suggestions.
    Thanks.
    Edited by: AJ on May 12, 2009 9:44 PM

    Hi,
    > "What will be the difference between leaving that red lights 'ON' vs "disabling" these red objects? (I am bit confused on this).
    Red Object: As you know that authorization Objects comprises of Authorization fields. There are certain fields, which are known as "Organization Level" fields and need to be maintained Centrally. If you miss this fields, then the traffic light icon is RED. For all other authorization fields, light will be Yellow if you miss any blank field to maintain. During check, these fields will provide missing authorization (but you may not get error if same object is present in the role with all fields maintained status).
    Disabled Object: If you make any Object Disable, then during check, this Object will not be treated for checking Authorizations. But profile generator will keep this in mind, so you don't get Standard Objects repeatedly (if already present in Deactivated status also) whenever you go to "..Merge with New Data".
    You all other questions are very nicely answered already.
    Regards,
    Dipanjan

  • Using appintegrator with BW reports - Mapping problem

    Hi All,
    I've been using appintegrator with BW reports for a while.
    The portal was connected to BW by ticket and it worked without a problem.
    Since a new group of users was added to the portal and the UserID of those users in the portal & BW is not the same I want to change the logon method to user mapping.
    Now, I have a problem:
    when I try to run bex report I get a popup asking me for username/password (although the user mapping is configured correctly - transactions are running without a problem).
    Even if I click the 'cancel' button the report will run so I guess the user/password is passed to the bw.
    I use FQDN in the system definition in the portal and in the browser (both systems are on the same domain).
    I read note no. 593640, according to the note configuring the /sap/bw/mime service to anonymous login should solve the problem.
    Doesn't configuring the service this way will cause security issues? or is it just for eliminating the popup?
    Portal is EP6 SP16.
    Thanks,
    Omri

    Hi Dagfinn Parnas,
    The BW definition in EP is indeed user mapping.
    The mapping works for transactions without any problem.
    For bex reports I get the popup and even then, clicking the 'cancel' button shows the report. It's all explained in note 593640.
    Since I'm not a BW person I don't know what defining anonymous login for the MIME service means.
    This is a paragraph from the end of the note:
    'The /sap/bw/mime service is not authorization-relevant because only constant MIMEs such as JavaScript, images (.gif) or stylesheets can be queried. All data-relevant queries (tables or graphics) are made using /sap/bw/bex.'
    I guess it should work but I need to understand what anonymous login means in this case.
    Regards,
    Omri

  • Anyone using/know about Authorizations in ASL/Supplier Scheduling?

    I am trying to make use of the Authorization feature that can be set up in the ASL. I have set up a supplier with Authorizations and without Authorizations and I can see zero difference when I create any sort of Type/SubType forecast in Supplier Scheduling.
    Based on what you have to set up combined with some business experience I was guessing that this would somehow at least print some messages on the forecast, telling the supplier what you are committing to and/or not committing to, in order to manage your liability. Something like that has to be the expected behavior, but I am not seeing it.
    I have raised a TAR to ask what is the designed functionality but 5-6 weeks later the TAR is still 'work in progress', apparently no one there knows what its supposed to do either.
    If anyone is using this, or knows how its supposed to work, or has any good docu (User Guide is of no use), I sure would appreciate hearing from you.
    Right now I have no idea if what i am looking at is a bug or what was designed.
    thanks - Gregg

    hi Rock,
    this is an example for Provide,
    in ldb it is used to  populate the data;
    syn: provide * from itab(which event populates)
             between pn-begda and pn-endda.
            endprovide.
    ex: Provide *  from p0001
                        from p0002
          between pn-begda and pn-endda.
    and this is an example for Payroll getting wagetype of a pernr.
    for getting the wage type for particular wage type i am providing a example where you can modify according to your requirements:
    Ex:
    REPORT Zrock.
    TABLES: PCL1,PCL2. (NOT MANDATORY)
    INCLUDE RPC2RX09
    INCLUDE RPC2RDD0
    INCLUDE RPPXD00
    INCLUDE RPPXD10
    INCLUDE RPPXM00
    Parameters: p_pernr like p000-pernr
    p_per like pc261 like pc261-fpper
    Data: i_rgdir like pc261 occurs 0 with header line
    start-of-selection. here call the FM
    Call function cu_read_rgdir
    export params --- pernr = p_pernr
    tables
    in_rgdir = I_rgdir
    if sy-subrc = 0.
    loop at i_rgdir where fpper = p_per
    and inper = p_per
    here we r populating the RD Cluster key
    rx-key-pernr = p_per
    rx-key-seqnr = i_rgdir-seqnr
    *Importing the RD cluster data.
    RP-imp-c2-rd.
    if rp-imp--rd-subrc = 0.
    then processing the RT table for the required results (wagetype).
    Read table RT with key LGART = /'101'(here give ur wagetypes).
    if sy-subrc = 0.
    write: / p_pernr,
    I_rgdir-fpper,
    I_rgdir-inper,
    rt-lgart,
    rt-betrg.-----this is amount if you needed.
    endif.
    endif.
    endloop.
    endif.
    wait for sometime i wll also provide reports on OM, just remind me after 2 days. good luck
    Reward  if helpful.
    Thanks & Regards,
    Abdul.

  • Association of authorization group with authorization object

    Dear Colleagues,
    We are using ECC 6.0 system. There is a transaction EMMAC2 where in the user would pick the case categories & view/make changes as required in the cases.
    However, we would like to have a user to pick only those case categories for which he/she is authorized & view/change the data.
    This EMMAC2 is controlled by authorization object B_EMMA_CAS & this authorization object has field BRGRU (Authorization Group) along with ACTVT (activity).
    We would like to control this via authorization groups
    We would like to create authorizations groups based on case categories & those authorization groups would be assigned in this BRGRU field.
    Meaning, the end result should be such that, when that new authorization group is added in BRGRU field & that role is assigned to an end user, the user should be able to see data only for those case categories for which the new authorization group has been created
    If I use SE54 to create authorization group, it automatically associates itself with authorization object S_TABU_DIS & this does not solve my purpose.
    But we would like to create a new authorization group & associate it with authorization object B_EMMA_CAS.
    Can someone please let me know the steps on how to achieve it or any other method to achieve it(for above underlined text)?
    Does a developer or functional consultant also need to be involved in this?
    PS: I tried to search in Google & our forums but could not get any answers

    Dear Aninda,
    Thanks for the help.
    I created an auth group via SE16 in table TBRG & associated to B_EMMA_CAS
    A case category was then assigned to this auth group
    We tested it - below are the results:-
    1. The user is allowed to 'change' and 'display' the case for the case category for which the user is authorized: this works as per requirement.
    2. The user is not allowed to 'change' case for the case category for which the user is not authorized: this works as per requirement.
    3. However, he is able to 'display' cases for the case category for which the user is not authorized: this we do not want.
    If I remove activty 03 (display), then the user is unable to display the case for the case category for which the user is  authorized.
    How to resolve this?

  • Using iCloud with 2 different accounts is this possible.

    Using iCloud with 2 different accounts is this possible. Example if I buy a song from iTunes could it be synced to my wife's account.

    No, but you can authorize her machine to play songs from your account, you'll just import them manually, they won't 'sync'

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

  • OPEN CURSOR using a WITH clause in the select query

    Hi,
    I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
    In the procedure, I am using OPEN <cursor_name> FOR <query>;
    Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
    I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.

    What error do you get , seems to work ok for me on 10g
    SQL> begin
      2  open :cv for 'with x as (select * from emp)  select * from x';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :cv
         EMPNO
    ENAME
    JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521
    WARD
    SALESMAN        7698 22-FEB-81       1250        500         30
          7566
    JONES
    MANAGER         7839 02-APR-81       2975                    20
         EMPNO

Maybe you are looking for

  • LSX-00119 when attempting to register schema

    I'm getting an LSX-00119 error trying to register a new revision of an existing schema which registered without any problems: ORA-31154: invalid XML document ORA-19202: Error occurred in XML processing LSX-00119: value is not valid restriction of par

  • Determine http source for file in my PKGBUILD

    I'm trying to write a PKGBUILD for a JAlbum skin.  The problem I'm having is that the download link doesn't point to a specific file.  Ideas on how I can translate the following into a source=(http://) line in my PKGBUILD are welcomed Here is the dow

  • SPROXY in ECC doesn't show all the IR objects

    SPROXY in ECC doesn't display all my objects in XI integration repository. But I am able to see those objects and create proxy if run SPROXY on XI. Is there a configuration missing R3 or SLD? Please help.

  • Dimensions change after exporting.

    I have a 492x242 pixel file but every time I export it out to any other type of file it becomes 1025x504 pixels. jpeg's, png's, and .pdf's. I'm not sure what's wrong.

  • What is suppy chain management in SAP

    hi what is suppy chain management in SAP