[Macpartners] kinit when run by OS X launchd (error)

Brian Bulmer bbulmer at MIT.EDU
Sat Oct 3 21:26:27 EDT 2009


The issue is most likely that the batch script runs without elevated privileges. It ends up running as a standard user when run as "An application" or launchd process.

I can't recall how to fix this right off, but I've run across this problem a few times when trying to make applescripts into applications, and making my own installers with xcode and packagemaker. Everything would run great when I physically launchedit, but once I saved it as an application, it could not perform the tasks needed.

Sorry I can't be of more help right now, but I think I have you down the right path.

Brian Bulmer
Managed Desktop Services Consultant
Information Services and Technology, MIT
Office: (617) 253-2163
bbulmer at mit.edu<mailto:bbulmer at mit.edu>
http://ist.mit.edu/about/org/ds
_______________________________________
Please note:  MIT IS&T staff will NEVER ask you for your password, nor any email requesting your password information.  Please ignore any email messages that claim to require you to provide such information.

On Oct 3, 2009, at 8:49 PM, Duncan Kincaid wrote:

i've a bash shell script which runs perfectly when run from the
command line.
specifically, the kinit and klist below works as expected:

/usr/bin/kinit -k -t /etc/something.keytab daemon/something.mit.edu at ATHENA.MIT.EDU<mailto:daemon/something.mit.edu at ATHENA.MIT.EDU>
/usr/bin/klist

however when launching this same shell script as a LaunchDaemon, the
kinit and klist fail.
the system log reports:

kinit: Error getting initial tickets: Internal credentials cache error
klist: No Kerberos 5 tickets in credentials cache

is this a bug or a feature (of my stupidity)?
i find it odd that kinit simply fails when when the script is
controlled by launchd.
(note that all other stuff in the script runs fine when controlled by
launchd. it is just the kinit and klist).

: Mac OS X 10.5.8 on PPC Xserve

with thanks
dk

|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
duncan kincaid
cron | mit school of architecture and planning
_______________________________________________
Macpartners mailing list
Macpartners at mit.edu<mailto:Macpartners at mit.edu>
http://mailman.mit.edu/mailman/listinfo/macpartners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/macpartners/attachments/20091003/12775411/attachment.htm


More information about the Macpartners mailing list