[launchd-dev] su/sudo behave differently for controlling a user’s launchd
Quinn "The Eskimo!"
eskimo1 at apple.com
Mon May 28 01:42:45 PDT 2012
On 25 May 2012, at 18:24, Sidney San Martín wrote:
> Using su fixes the issue. I have no idea what the difference might be. I’m posting this in case anyone else runs into the same problem. Also, I wonder, does anyone has any insight into why they behave differently?
IIRC sudo sets just the EUID, whereas su sets both the EUID and the RUID. launchctl keys off the RUID. Personally I tend to use <x-man-page://chroot> for this sort of thing. It has a nicer interface than su and can't get you into trouble like sudo.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
More information about the launchd-dev
mailing list