Error in starting up a daemon

Discussion in 'Mac Programming' started by Jose Jayan, Jun 22, 2009.

  1. macrumors newbie

    Joined:
    Jun 9, 2009
    #1
  2. macrumors member

    Joined:
    Jun 4, 2009
    #2
    Base don nothing but the error message... have you checked the ownership of the plist file? "ls -l" from the command line and compare to the other files.

    HTH,

    Andrew
     
  3. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #3
    The file should have permissions 644, and belong to the user it is to be launched as.

    If there are write permissions for others, this means that someone else on the system could change something that's being run automatically, which could just be a script that erases your home directory.

    -Lee
     
  4. thread starter macrumors newbie

    Joined:
    Jun 9, 2009
    #4
    Hi

    The permission on the plist file is:

    -rw-r--r--@ 1 defaultuser staff

    where defaultuser is the current logged in user.

    Command:
    "sudo launchctl load ./com.apple.dts.SampleD.plist"

    Error:
    Password:
    launchctl: Dubious ownership on file (skipping): ./com.apple.dts.SampleD.plist
    nothing found to load

    Thanks
    J
     
  5. thread starter macrumors newbie

    Joined:
    Jun 9, 2009
    #5
    Details

    Tanx in advance
     
  6. macrumors 6502a

    Joined:
    Oct 13, 2007
    #6
    Look at the permissions/owner/group of the other items in that folder. Make it match those permissions/owner/group. The error message is telling you what to look at.
     
  7. thread starter macrumors newbie

    Joined:
    Jun 9, 2009
    #7
    Hi

    I have tried setting various permissions levels for the plist file.
    Still bad luck.
    Any idea?

    OS:
    Mac OS X 10.5.7

    Thx
    Jose
     
  8. macrumors member

    Joined:
    Jun 4, 2009
    #8
    Perhaps you should post the output of ls -l in that directory, and the contents of the plist, and someone might be able to spot what is wrong. I haven't got a mac here to check.

    As someone else said the file probably has to be owned by the person trying to start it. Who is running launchctl?
     

Share This Page