launchctl: Dubious ownership on file (skipping) (Mac OS X)

4

1

I installed mysql recently and added its start command in my .bash file. But when I tried running the command, that's when I encountered this error:

launchctl: Dubious ownership on file (skipping): /Users/newuser/Library/LaunchAgents/com.mysql.mysqld.plist nothing found to load

Does anyone know what it is about?

picardo

Posted 2011-01-27T12:15:36.250

Reputation: 2 387

Answers

3

According to this discussion, it may be a permissions issue with that .plist.

The article suggests:

A chmod 644 on the plist (logged in as whatever user the home directory corresponds to), run launchctl again, and you should be good.

In addition, I would suggest creating a copy of the .plist in question before changing the permissions.

CaseyIT

Posted 2011-01-27T12:15:36.250

Reputation: 3 213

1I am having this issue as well. My permissions are however already set to 644. – well actually – 2012-03-14T22:35:12.680

0

You've to correct the ownership (in some other cases permission or path) of your .plist file or force the loading by -F.

Here is snapshot from launchctl.c:

if (sb.st_uid != 0 && sb.st_uid != getuid()) {
    fprintf(stderr, "%s: Dubious ownership on file (skipping): %s\n", getprogname(), path);
    return false;
}

kenorb

Posted 2011-01-27T12:15:36.250

Reputation: 16 795