Hi guys
I am moving away from ADmitMac and using Apple built in connector.
Unfortunately my kerberos ticket gets deleted after a couple of minutes.
Has anyone seen this in Mountain Lion?
Hi guys
I am moving away from ADmitMac and using Apple built in connector.
Unfortunately my kerberos ticket gets deleted after a couple of minutes.
Has anyone seen this in Mountain Lion?
Best answer by tkimpton
my script to add an item as a login
#!/bin/bash
######################### HISTORY #####################################
# #
# Created by Tim Kimpton 14/05/2013 #
# #
# Set an application to open at login as the currently logged in user #
# #
################### Environment Variables #############################
# Get the currently logged in user
user=`ls -l /dev/console | cut -d " " -f4`
# Specifiying the Login Item
LoginItem='/usr/bin/osascript <<EOT
try
tell application "System Events"
make login item at end with properties {path:"/Applications/SomeApp.app/"}
end tell
end try
EOT'
############### DO NOT MODIFY BELOW THIS LINE ################
# Set the App as a login item as the currently logged in user
su - "${user}" -c "${LoginItem}" >/dev/nullEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.